/* Gadget Museum Elite global header — scoped styles */
body .site-header, body #masthead { display:none !important; }
#gm-global-header { --gm-orange:#ff6b00;--gm-edge:#1f242d;--gm-dark:#07080a;--gm-card:#111318;--gm-dim:#94a3b8;--gm-text:#fff;--gm-ann-start:#ff6b00;--gm-ann-end:#d57d00;--gm-ann-text:#fff;position:relative;z-index:1000;width:100%;font-family:Inter,Arial,sans-serif;color:var(--gm-text);line-height:1.4; }
#gm-global-header *,#gm-global-header *::before,#gm-global-header *::after {box-sizing:border-box}
#gm-global-header a {text-decoration:none}
#gm-global-header .gm-announcement {min-height:32px;background:linear-gradient(100deg,var(--gm-ann-start,#ff6b00) 0%,var(--gm-ann-end,#d57d00) 100%);color:var(--gm-ann-text,#fff);text-align:center;font-size:11px;font-weight:700;letter-spacing:.1px;display:flex;justify-content:center;align-items:center;gap:5px;padding:7px 10px;flex-wrap:wrap}
#gm-global-header .gm-top-header {background:var(--gm-dark);border-bottom:1px solid var(--gm-edge)}
#gm-global-header .gm-header-inner {width:100%;max-width:1280px;margin:auto;padding:0 24px;min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:22px}
#gm-global-header .gm-brand {display:flex;align-items:center;gap:11px;flex:0 0 auto;min-width:245px;color:var(--gm-text)}
#gm-global-header .gm-brand-square {height:44px;width:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--gm-orange);overflow:hidden}
#gm-global-header .gm-brand-letters {font-size:20px;font-weight:800;color:var(--gm-text);letter-spacing:-.6px}
#gm-global-header .gm-brand-logo-image {display:block;width:100%;height:100%;object-fit:contain}
#gm-global-header .gm-brand-name {display:flex;flex-direction:column;min-width:0}
#gm-global-header .gm-brand-line {color:var(--gm-text);font-weight:800;font-size:19px;line-height:1.15;letter-spacing:.1px;white-space:nowrap}
#gm-global-header .gm-brand-line em {font-style:normal;color:var(--gm-orange)}
#gm-global-header .gm-brand-name small {font-size:10px;letter-spacing:2px;margin-top:5px;color:var(--gm-dim);font-weight:700;white-space:nowrap}
#gm-global-header .gm-desktop-navigation {display:flex;gap:24px;align-items:center;flex:0 0 auto}
#gm-global-header .gm-desktop-navigation>a,#gm-global-header .gm-category-button {color:var(--gm-text);font:600 13px/1.4 Inter,Arial,sans-serif;background:transparent;border:0;box-shadow:none;padding:13px 0;cursor:pointer;white-space:nowrap}
#gm-global-header .gm-desktop-navigation>a:hover,#gm-global-header .gm-category-button:hover {color:var(--gm-orange)}
#gm-global-header .gm-category-holder {position:relative}
#gm-global-header .gm-category-dropdown {display:none;position:absolute;top:100%;left:-15px;width:245px;max-height:350px;overflow:auto;background:var(--gm-card);border:1px solid var(--gm-edge);border-radius:11px;padding:8px;box-shadow:0 18px 40px #000a;z-index:1200}
#gm-global-header .gm-category-holder:hover .gm-category-dropdown,#gm-global-header .gm-category-holder:focus-within .gm-category-dropdown,#gm-global-header .gm-category-holder.gm-open .gm-category-dropdown {display:block}
#gm-global-header .gm-category-item {display:block;padding:9px 12px 9px calc(12px + var(--gm-depth)*12px);font-size:13px;font-weight:500;color:#e2e8f0;border-radius:7px}
#gm-global-header .gm-category-item:hover {color:var(--gm-orange);background:#22262d}
#gm-global-header .gm-category-empty {display:block;padding:10px;color:var(--gm-dim);font-size:12px}
#gm-global-header .gm-search {display:flex;align-items:center;min-width:0;margin:0;background:var(--gm-card);border:1px solid var(--gm-edge);border-radius:12px;height:42px;overflow:hidden}
#gm-global-header .gm-search:focus-within {border-color:var(--gm-orange)}
#gm-global-header .gm-search-desktop {flex:1 1 245px;max-width:320px;min-width:125px}
#gm-global-header .gm-search input[type=search] {display:block;flex:1 1 auto;min-width:0;width:100%;height:100%;padding:0 15px!important;background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;color:var(--gm-text)!important;font-size:13px;font-weight:400;border-radius:0!important}
#gm-global-header .gm-search input::placeholder {color:#7e8ba0;opacity:1}
#gm-global-header .gm-search button {flex:0 0 40px;height:40px;background:transparent!important;border:0!important;padding:10px!important;margin:0;box-shadow:none!important;color:var(--gm-dim);cursor:pointer}
#gm-global-header .gm-search button:hover {color:var(--gm-orange)}
#gm-global-header .gm-search svg {width:18px;height:18px}
#gm-global-header .gm-header-actions {display:flex;align-items:center;flex:0 0 auto;gap:10px}
#gm-global-header .gm-wishlist {width:44px;height:44px;display:flex;justify-content:center;align-items:center;color:#d0d7e2;border:1px solid var(--gm-edge);border-radius:12px;background:var(--gm-card);position:relative}
#gm-global-header .gm-wishlist:not(.gm-wishlist-disabled):hover {border-color:var(--gm-orange);color:var(--gm-orange)}
#gm-global-header .gm-wishlist-disabled {opacity:.8;cursor:default}
#gm-global-header .gm-wishlist svg {width:22px;height:22px}
#gm-global-header .gm-cart-link {height:44px;display:flex;align-items:center;gap:9px;padding:0 14px;background:var(--gm-orange);border-radius:12px;box-shadow:0 3px 20px #ff6b0025;color:var(--gm-text);font-size:13px;font-weight:800;white-space:nowrap}
#gm-global-header .gm-cart-link:hover {color:var(--gm-text);background:var(--gm-orange)}
#gm-global-header .gm-cart-link svg {width:20px;height:20px}
#gm-global-header .gm-cart-count {min-width:20px;height:20px;border-radius:50%;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:var(--gm-orange);font-size:11px;line-height:1;font-weight:800}
#gm-global-header .gm-mobile-search-row {display:none}
@media (min-width:922px) and (max-width:1150px) {
#gm-global-header .gm-header-inner {padding:0 15px;gap:13px}
#gm-global-header .gm-brand {min-width:200px}
#gm-global-header .gm-brand-line {font-size:16px}
#gm-global-header .gm-desktop-navigation {gap:14px}
#gm-global-header .gm-desktop-navigation>a,#gm-global-header .gm-category-button {font-size:12px}
#gm-global-header .gm-header-actions {gap:7px}
}
@media (max-width:921px) {
#gm-global-header .gm-announcement {font-size:10px;min-height:49px;line-height:1.5;padding:8px 17px;gap:3px}
#gm-global-header .gm-header-inner {min-height:79px;padding:0 16px;gap:7px}
#gm-global-header .gm-brand {min-width:0;gap:10px}
#gm-global-header .gm-brand-square {width:40px;height:40px;flex-basis:40px;border-radius:11px}
#gm-global-header .gm-brand-line {font-size:15px;letter-spacing:0}
#gm-global-header .gm-brand-name small {font-size:9px;letter-spacing:1.6px;margin-top:4px}
#gm-global-header .gm-desktop-navigation,#gm-global-header .gm-search-desktop {display:none}
#gm-global-header .gm-header-actions {gap:9px}
#gm-global-header .gm-wishlist {height:42px;width:42px}
#gm-global-header .gm-cart-link {height:42px;padding:0 12px;gap:8px}
#gm-global-header .gm-cart-label {display:none}
#gm-global-header .gm-mobile-search-row {display:block;background:var(--gm-card);border-top:1px solid var(--gm-edge);padding:9px 16px 15px}
#gm-global-header .gm-mobile-search-row .gm-search {height:42px;width:100%;background:var(--gm-dark)}
}
@media (max-width:390px) {
#gm-global-header .gm-header-inner {padding:0 11px;gap:5px}
#gm-global-header .gm-brand {gap:8px}
#gm-global-header .gm-brand-square {height:39px;width:39px;flex-basis:39px}
#gm-global-header .gm-brand-line {font-size:13px}
#gm-global-header .gm-brand-name small {font-size:8px;letter-spacing:1.35px}
#gm-global-header .gm-header-actions {gap:7px}
#gm-global-header .gm-wishlist {width:40px;height:40px}
#gm-global-header .gm-cart-link {height:40px;padding:0 9px;gap:6px}
}

/* Respect adjustable brand text, mobile cart remains icon-first */
#gm-global-header .gm-brand-line{color:var(--gm-text)}
#gm-global-header .gm-announcement{color:var(--gm-ann-text)}
/* Built-in wishlist buttons & wishlist page */
#gm-global-header .gm-wishlist .flexi-wish-count{position:absolute;top:-6px;right:-6px;background:var(--gm-orange);color:#fff;border-radius:99px;min-width:17px;height:17px;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 3px}
.flexi-product-wish{margin:8px 0}
.flexi-wish-toggle{cursor:pointer;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#e11d48;font-size:24px;line-height:1;padding:6px 10px}
.flexi-wish-toggle[aria-pressed=true]{background:#fff1f2;border-color:#fb7185}
.flexi-wish-toggle:disabled{opacity:.65;cursor:wait}
.flexi-wish-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:20px}
.flexi-wish-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:15px;color:#222}
.flexi-wish-card img{width:100%;height:auto;object-fit:contain}
.flexi-wish-card h3{font-size:16px;margin:10px 0}
.flexi-wish-card-actions{display:flex;align-items:center;gap:12px;margin-top:12px}
.flexi-view-product{font-weight:600}

/* Independent brand emphasis color, remains effective with uploaded custom logo. */
#gm-global-header .gm-brand-line .gm-brand-highlight{color:var(--gm-brand-highlight,#ff6b00)}

/* v1.4: font controls; defaults match original v1 visual sizes */
#gm-global-header{font-family:var(--gm-font,Inter,Arial,sans-serif)}
#gm-global-header .gm-brand-line{font-family:var(--gm-brand-font,Inter,Arial,sans-serif);font-size:var(--gm-title-desktop,19px);font-weight:var(--gm-title-weight,800);letter-spacing:var(--gm-title-spacing,.1px)}
#gm-global-header .gm-brand-name small{font-size:var(--gm-subtitle-size,10px);letter-spacing:var(--gm-subtitle-spacing,2px)}
#gm-global-header .gm-announcement{font-size:var(--gm-ann-size,11px)}
#gm-global-header .gm-desktop-navigation>a,#gm-global-header .gm-category-button{font-family:var(--gm-font,Inter,Arial,sans-serif);font-size:var(--gm-nav-size,13px)}
@media (min-width:922px) and (max-width:1150px){#gm-global-header .gm-brand-line{font-size:min(var(--gm-title-desktop,19px),16px)}}
@media (max-width:921px){
 #gm-global-header .gm-brand-line{font-size:var(--gm-title-mobile,15px)}
 #gm-global-header .gm-brand-name small{font-size:var(--gm-subtitle-mobile,9px)}
 #gm-global-header .gm-announcement{font-size:var(--gm-ann-mobile,10px)}
}
@media (max-width:390px){#gm-global-header .gm-brand-line{font-size:var(--gm-title-small,13px)}#gm-global-header .gm-brand-name small{font-size:8px}}

/* v1.5 logo container customization: no legacy orange square behind uploaded image. */
#gm-global-header .gm-brand-square {
 width:var(--gm-logo-desktop-size,44px);
 height:var(--gm-logo-desktop-size,44px);
 flex:0 0 var(--gm-logo-desktop-size,44px);
 border:var(--gm-logo-border-width,0px) solid var(--gm-logo-border-color,#ff6b00);
 border-radius:var(--gm-logo-radius,12px);
 padding:var(--gm-logo-padding,0px);
 box-sizing:border-box;
 box-shadow:var(--gm-logo-shadow,none);
 background:var(--gm-logo-bg,#07080a);
 overflow:hidden;
}
/* Legacy GM placeholder should remain orange. Uploaded logo gets user-selected bg (default dark). */
#gm-global-header .gm-brand-square.gm-no-logo {background:var(--gm-orange)}
#gm-global-header .gm-brand-square.gm-has-logo img.gm-brand-logo-image {
 width:100%;height:100%;max-width:none;max-height:none;
 display:block;object-fit:contain;border:0!important;box-shadow:none!important;
}
@media(max-width:921px){
 #gm-global-header .gm-brand-square {
  width:var(--gm-logo-mobile-size,40px);height:var(--gm-logo-mobile-size,40px);
  flex-basis:var(--gm-logo-mobile-size,40px);border-radius:var(--gm-logo-radius,12px)
 }
}

/* v1.6: seamless, repeating announcement without a gap or reset */
#gm-global-header .gm-announcement {position:relative;overflow:hidden;display:block;padding:0;min-height:32px;line-height:1.5}
#gm-global-header .gm-announcement-fallback {text-align:center;padding:7px 12px;line-height:1.5}
#gm-global-header .gm-ticker-active .gm-announcement-fallback {display:none}
#gm-global-header .gm-ticker-viewport {overflow:hidden;width:min(100%, 520px);max-width:100%;margin-inline:auto;min-height:32px;display:flex;align-items:center}
#gm-global-header .gm-ticker-track {display:flex;align-items:center;width:max-content;white-space:nowrap;will-change:transform;animation:gmTickerLoop var(--gm-ticker-duration,15s) linear infinite;animation-direction:var(--gm-ticker-direction,normal)}
#gm-global-header .gm-ticker-item {display:inline-flex;align-items:center;flex:none;white-space:nowrap;padding-right:var(--gm-ticker-gap,40px)}
@keyframes gmTickerLoop {from{transform:translate3d(0,0,0)}to{transform:translate3d(calc(-1 * var(--gm-ticker-shift, 250px)),0,0)}}
#gm-global-header .gm-ticker-pause-hover .gm-ticker-viewport:hover .gm-ticker-track {animation-play-state:paused}
@media(max-width:921px){
  #gm-global-header .gm-announcement {min-height:49px;padding:0}
  #gm-global-header .gm-ticker-viewport {min-height:49px}
  #gm-global-header .gm-announcement-fallback {padding:8px 17px}
  #gm-global-header .gm-ticker-desktop-only .gm-ticker-viewport {display:none}
  #gm-global-header .gm-ticker-desktop-only .gm-announcement-fallback {display:block}
}
@media(prefers-reduced-motion:reduce){
  #gm-global-header .gm-ticker-viewport {display:none}
  #gm-global-header .gm-ticker-active .gm-announcement-fallback {display:block}
}

/* v1.7: compact centered ticker window; orange bar itself stays full-width.
   Hide overflow in the viewport and allow the second text copy to enter before the first exits. */
#gm-global-header .gm-ticker-active .gm-ticker-viewport { width:min(100%, 520px); max-width:100%; margin-left:auto; margin-right:auto; overflow:hidden; }
@media(max-width:600px){#gm-global-header .gm-ticker-active .gm-ticker-viewport {width:100%;}}

/* v1.8: centered mobile ticker, inset clipping, slower entry for subsequent copy. */
#gm-global-header .gm-announcement { display:flex; align-items:center; justify-content:center; }
#gm-global-header .gm-ticker-active .gm-ticker-viewport {
  width:min(calc(100% - 48px), 520px); max-width:calc(100% - 48px);
  margin-inline:auto; height:32px; min-height:32px;
  display:flex; align-items:center; justify-content:flex-start;
  overflow:hidden; padding:0;
}
#gm-global-header .gm-ticker-active .gm-ticker-track {
  height:100%; display:flex; align-items:center; line-height:1;
  animation-name:gmTickerCompact;
}
#gm-global-header .gm-ticker-active .gm-ticker-item {
  display:inline-flex; height:100%; align-items:center; line-height:1.2;
  padding-right:var(--gm-ticker-gap,40px);
}
@keyframes gmTickerCompact {
  from {transform:translate3d(var(--gm-ticker-entry,0px),0,0)}
  to {transform:translate3d(calc(var(--gm-ticker-entry,0px) - var(--gm-ticker-shift,250px)),0,0)}
}
@media (max-width:921px) {
  #gm-global-header .gm-ticker-active .gm-ticker-viewport {
    width:calc(100% - 48px); max-width:calc(100% - 48px);
    min-height:49px; height:49px;
  }
  #gm-global-header .gm-ticker-active .gm-ticker-track {height:49px;}
}
@media (prefers-reduced-motion: reduce) {
  #gm-global-header .gm-ticker-active .gm-ticker-viewport {display:none}
  #gm-global-header .gm-ticker-active .gm-announcement-fallback {display:block}
}

/* v1.11: JS handles continuous motion. Prevent old CSS keyframe conflicts. */
#gm-global-header .gm-ticker-active .gm-ticker-track {animation:none !important; transition:none !important;}
