/* Shared layout: loaded after page-specific styles. */
#site-header {background:#fff;color:#12233a;word-break:keep-all}
#site-header .top {display:flex;align-items:center;max-width:1360px;margin:auto;padding:16px 20px;justify-content:space-between;gap:20px;flex-wrap:nowrap;background:#fff}
#site-header .brand {display:flex;align-items:center;gap:12px;font-weight:900;font-size:29px;line-height:1.1;white-space:nowrap}
#site-header svg {width:30px;height:30px;flex:none}
#site-header .brand svg {width:58px;height:48px;color:#164b36}
#site-header .brand small {display:block;font-size:12px;margin-top:6px}
#site-header .top form {display:flex;flex:1;max-width:490px;margin:0}
#site-header .top input {width:100%;min-width:0;border-radius:7px 0 0 7px}
#site-header .top form button {background:#172e46;color:white;border-radius:0 7px 7px 0;padding:8px 15px;display:flex;align-items:center;justify-content:center}
#site-header .quick {display:flex;gap:24px}
#site-header .quick a {display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px;font-weight:700}
#site-header .menu {display:flex;gap:0;padding:0;justify-content:center;background:#142b42;color:white;flex-wrap:wrap}
#site-header .menu a {padding:14px 23px;font-weight:700;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.3;color:white}
#site-header .menu a:hover {background:#29465e}
#site-header .nav-chevron {display:inline-block;width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-2px) rotate(45deg);flex:none}
#site-footer footer {margin:0;background:#142b42;color:#fff;text-align:center;padding:30px 20px}
#site-footer .footer-logo {font-size:26px;font-weight:900;letter-spacing:1px;margin-bottom:5px}
#site-footer .footer-description {font-size:13px;margin-bottom:10px}
#site-footer .footer-notice {font-size:12px;color:#c5d1dc;line-height:1.6}
@media(max-width:1050px){#site-header .quick{gap:10px}#site-header .brand{font-size:23px}#site-header .menu a{padding:12px}}
@media(max-width:760px){#site-header .top{flex-wrap:wrap;padding:12px;gap:12px}#site-header .top form{order:3;max-width:none;flex-basis:100%}#site-header .quick a{font-size:10px}#site-header .quick svg{width:23px;height:23px}#site-header .brand svg{width:36px}#site-header .brand{font-size:19px}#site-header .brand small{font-size:10px}#site-header .menu{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start}#site-header .menu a{white-space:nowrap;font-size:13px;flex:none}}


/* Auto-hide header on scroll */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform .25s ease;
  box-shadow: 0 2px 8px rgba(20,43,66,.08);
}
#site-header.is-scroll-hidden:not(:focus-within) {
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
  #site-header { transition: none; }
}



/* Shared favorites controls */
#site-header .fav-header-link {position:relative}
#site-header .fav-count {position:absolute;top:-5px;right:-9px;background:#bc263c;color:white;border-radius:20px;padding:2px 5px;font-size:10px;line-height:1.2;min-width:17px;text-align:center}
.fav-product-card,.rank-item {position:relative}
.fav-product-link {display:block;color:inherit;text-decoration:none}
button.fav-toggle {position:absolute;z-index:2;top:5px;right:5px;width:32px;height:32px;padding:5px;display:grid;place-items:center;background:#fff;color:#34465a;border:1px solid #cbd6df;border-radius:50%;cursor:pointer;touch-action:manipulation;box-shadow:0 1px 4px #0002}
button.fav-toggle svg {width:19px;height:19px;pointer-events:none}
button.fav-toggle[aria-pressed="true"] {color:#c12640;border-color:#c12640}
button.fav-toggle[aria-pressed="true"] svg {fill:currentColor}
button.fav-toggle:focus-visible {outline:3px solid #3185c9;outline-offset:2px}
.rank-item>a {padding-right:40px}

/* Compact product favorite buttons */
button.fav-toggle {
 position:absolute !important; top:5px; right:5px;
 width:26px !important; height:26px !important;
 min-width:0 !important; min-height:0 !important;
 padding:0 !important; margin:0 !important; box-sizing:border-box;
 border-radius:50%; display:grid; place-items:center;
}
button.fav-toggle svg {width:14px !important;height:14px !important;}
