/* Shared ISYU header + footer (PHP site and /shop/ pages). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.site-header {
  border-bottom: 2px solid #14161a;
  background: rgba(255,255,255,.98);
  position: sticky; top: 0; z-index: 40;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.site-header .wrap, .site-footer .wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.site-header .header-top {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0;
}
.site-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; color: #14161a; text-decoration: none; flex: 0 0 auto; }
.site-header .brand:hover { text-decoration: none; }
.site-header .brand img { height: 36px; width: 36px; object-fit: cover; border-radius: 8px; border: 1.5px solid #14161a; }
.site-search { display: flex; flex: 1 1 auto; min-width: 0; max-width: 740px; }
.site-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: 2px solid #14161a; border-right: 0; border-radius: 9px 0 0 9px;
  padding: 10px 12px; font-size: 1rem; background: #fff; color: #14161a;
}
.site-search button {
  border: 2px solid #14161a; border-radius: 0 9px 9px 0; background: #14161a; color: #fff;
  font-weight: 800; padding: 10px 16px; cursor: pointer; white-space: nowrap;
}
.site-search button:hover { background: #c41e1e; border-color: #c41e1e; }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }
.tool-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #14161a; font-weight: 700; font-size: 0.92rem; text-decoration: none;
  padding: 8px 10px; border-radius: 9px;
}
.tool-link:hover { color: #c41e1e; background: rgba(255,56,56,.08); text-decoration: none; }
.nav-ic { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.site-header .cart-badge {
  display: inline-block; min-width: 1.3em; padding: 0 6px; margin-left: 2px;
  background: #ff3838; color: #fff; border-radius: 99px; font-size: 0.8rem; line-height: 1.4; text-align: center;
}
.site-header .nav-toggle-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.site-header .nav-toggle {
  display: none; cursor: pointer; font-weight: 800; font-size: 0.95rem;
  padding: 8px 12px; border: 1.5px solid #14161a; border-radius: 9px; background: #fff; color: #14161a;
}
.dept-nav { background: #14161a; color: #fff; }
.dept-row { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 0; min-height: 42px; }
.dept-row > a, .dept-more > summary {
  color: #fff; font-weight: 700; font-size: 0.88rem; text-decoration: none;
  padding: 10px 11px; border-radius: 0; background: transparent; border: 0;
  cursor: pointer; font-family: inherit;
}
.dept-row > a:hover, .dept-more[open] > summary, .dept-row > a:focus-visible, .dept-more > summary:hover {
  background: rgba(255,255,255,.12); text-decoration: none; color: #fff;
}
.dept-row > a.dept-special { color: #ffd23f; }
.dept-more { position: relative; }
.dept-more > summary { list-style: none; }
.dept-more > summary::-webkit-details-marker { display: none; }
.dept-more-menu {
  position: absolute; top: 100%; left: 0; z-index: 50;
  background: #fff; color: #14161a; border: 1.5px solid #14161a;
  min-width: 220px; padding: 6px 0; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.dept-more-menu a {
  display: block; color: #14161a; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; padding: 9px 14px;
}
.dept-more-menu a:hover { background: rgba(255,56,56,.08); color: #c41e1e; text-decoration: none; }
.mobile-drawer { display: none; padding: 12px 16px 16px; border-top: 1px solid #d4d8de; background: #fff; }
.mobile-drawer .site-search { max-width: none; margin-bottom: 10px; }
.mobile-drawer nav { display: flex; flex-direction: column; }
.mobile-drawer nav a {
  color: #14161a; font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 12px 8px; border-bottom: 1px solid #eceef1;
}
.mobile-drawer nav a:hover { color: #c41e1e; }
.site-header .nav-toggle-input:checked ~ .mobile-drawer { display: block; }
.site-footer {
  margin-top: 48px; padding: 28px 0 20px; border-top: 2px solid #14161a;
  background: #fff; color: #14161a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.95rem;
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.2fr 1.4fr 0.9fr; gap: 28px; padding-bottom: 16px;
}
.site-footer h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.site-footer p { margin: 0 0 8px; }
.site-footer .muted { color: #5f6672; }
.site-footer a { color: #c41e1e; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.site-footer .copy { margin: 12px 0 0; color: #5f6672; font-size: 0.85rem; }
nav.crumbs { margin: 0 0 16px; font-size: 0.9rem; }
nav.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 0; padding: 0; color: #5f6672; }
nav.crumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: #8a9099; }
nav.crumbs a { color: #14161a; }
@media (max-width: 760px) {
  .site-header .site-search-desktop { display: none; }
  .site-header .dept-nav { display: none; }
  .site-header .nav-toggle { display: inline-block; }
  .tool-link span { display: none; }
  .tool-link.tool-admin { display: none; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
