/* The store's header (Magento_Theme/templates/html/silverstripe-header.phtml): logo + "Online
   Store", search, gamry.com, account, cart; then the category bar. Colours and fonts are the
   website's tokens (--gm-*), loaded with the website CSS for the footer. */

.store-head { background: #fff; border-bottom: 1px solid var(--gm-border, #e6eaec); font-family: var(--gm-font-body, 'IBM Plex Sans', sans-serif); }
.store-head-inner {
	max-width: 1440px; margin: 0 auto; padding: 14px 32px; box-sizing: border-box;
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px;
}
.store-head a { text-decoration: none; }
.store-head-brand { display: flex; align-items: center; gap: 14px; color: var(--gm-navy, #003e69); }
.store-head-brand img { display: block; width: 170px; height: auto; }
.store-head-label {
	padding-left: 14px; border-left: 1px solid var(--gm-border-ctl, #d5dcdf);
	font-family: var(--gm-font-display, 'Space Grotesk', sans-serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
	color: var(--gm-ink, #17242b); white-space: nowrap;
}

.store-head-search { position: relative; display: flex; max-width: 560px; width: 100%; justify-self: center; margin: 0; }
.store-head .store-head-search input[type="search"] {
	width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0 48px 0 16px; box-sizing: border-box;
	border: 1px solid var(--gm-border-ctl, #d5dcdf); border-radius: 10px; background: var(--gm-panel, #f2f4f5);
	font: 400 15px var(--gm-font-body, 'IBM Plex Sans', sans-serif); color: var(--gm-ink, #17242b); box-shadow: none;
}
.store-head .store-head-search input[type="search"]:focus { outline: none; background: #fff; border-color: var(--gm-navy, #003e69); box-shadow: 0 0 0 3px rgba(0, 62, 105, .15); }
/* orders-gamry.css forces every <button> to white text with !important */
.store-head .store-head-search button {
	position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; padding: 0; margin: 0;
	display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; box-shadow: none;
	color: var(--gm-navy, #003e69) !important; cursor: pointer;
}
.store-head .store-head-search button:hover { background: #e6edf2; }

.store-head-actions { display: flex; align-items: center; gap: 6px; }
.store-head-site {
	display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; padding: 8px 4px;
	font-size: 14px; font-weight: 500; color: var(--gm-muted, #5f6b72);
}
.store-head-site:hover { color: var(--gm-navy, #003e69); text-decoration: underline; }
.store-head-action {
	position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
	border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--gm-navy, #003e69);
}
.store-head-action:hover { background: var(--gm-panel, #f2f4f5); color: var(--gm-navy, #003e69); }
.store-head-count {
	min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px;
	display: inline-grid; place-items: center; background: var(--gm-navy, #003e69); color: #fff;
	font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.store-head-count[hidden] { display: none; }
.store-nav li.store-nav-site { display: none; margin-left: auto; }
.store-nav li.store-nav-site .store-nav-link { color: var(--gm-muted, #5f6b72); font-weight: 500; }

@media (max-width: 1100px) {
	.store-head-inner { gap: 18px; padding: 12px 22px; }
	.store-head-site { display: none; }
	.store-nav li.store-nav-site { display: block; }
}
/* Phones: logo and icons on one row, search full width below */
@media (max-width: 760px) {
	.store-head-inner { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px 12px; gap: 10px 8px; }
	.store-head-brand { gap: 10px; min-width: 0; }
	.store-head-brand img { width: 118px; }
	.store-head-label { padding-left: 10px; font-size: 16px; }
	.store-head-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
	.store-head-action { padding: 0 10px; }
	.store-head-action > span:not(.store-head-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.store-head-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; font-size: 11px; }
}

/* Category bar under the header: the website's panel grey, navy links. */
.store-nav {
	background: var(--gm-panel, #f2f4f5);
	border-bottom: 1px solid var(--gm-border, #e6eaec);
	font-family: var(--gm-font-body, 'IBM Plex Sans', sans-serif);
}
.store-nav-inner {
	max-width: 1440px; margin: 0 auto; padding: 0 22px;
}
.store-nav ul {
	display: flex; flex-wrap: wrap; gap: 0 4px;
	list-style: none; margin: 0; padding: 0;
}
.store-nav li { margin: 0; }
.store-nav-link {
	display: block; padding: 12px 10px;
	font-size: 15px; font-weight: 500; color: var(--gm-navy, #003e69); text-decoration: none;
}
.store-nav-link:hover, .store-nav-link:focus-visible { color: var(--gm-navy-hover, #00567f); text-decoration: underline; }
.store-nav li.current > .store-nav-link { box-shadow: inset 0 -3px 0 var(--gm-navy, #003e69); font-weight: 600; }
/* Store home (added by silverstripe-header.phtml): icon only, at least 44px wide to tap,
   with a rule between it and the categories. The text stays for screen readers. */
.store-nav li.store-nav-home { display: flex; align-items: stretch; margin-right: 6px; padding-right: 6px; border-right: 1px solid var(--gm-border-ctl, #d5dcdf); }
.store-nav li.store-nav-home > .store-nav-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding-left: 10px; padding-right: 10px; box-sizing: border-box; }
.store-nav li.store-nav-home > .store-nav-link:hover { text-decoration: none; }
.store-nav li.store-nav-home svg { flex: none; margin-top: -1px; }
.store-nav-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Phones and small tablets: one swipeable row instead of wrapping. */
@media (max-width: 900px) {
	.store-nav-inner { padding: 0 8px; }
	.store-nav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.store-nav-link { white-space: nowrap; padding: 12px 8px; }
}


