/* Announcement bar, header, mobile menu, footer — shared on every page. */

.oi-announcement {
	background: var(--oi-navy-800);
	color: var(--oi-dark-subtext);
	font-size: 13px;
	padding: 9px 0;
}
.oi-announcement .oi-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.oi-announcement__dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--oi-cyan);
	display: inline-block;
	margin-inline-end: 8px;
}
.oi-announcement__links a { color: var(--oi-dark-subtext); }
.oi-announcement__links a:hover { color: #fff; }
.oi-announcement__sep { opacity: .35; margin: 0 8px; }

@media (max-width: 782px) {
	.oi-announcement {
		position: sticky; top: 0; z-index: 40;
		font-size: 11px; padding: 7px 0; text-align: center;
	}
	.oi-announcement .oi-container { justify-content: center; padding-inline: 16px; }
	.oi-announcement__links { display: none; }
}

.oi-header {
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--oi-border-soft);
	position: sticky;
	top: 0;
	z-index: 35;
}
.oi-header .oi-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 14px;
}
.oi-logo { font-size: 22px; font-weight: 800; color: var(--oi-ink); display: flex; align-items: center; gap: 2px; direction: ltr;}
.oi-logo__accent { color: var(--oi-blue); }
.oi-logo--footer .oi-logo__accent { color: var(--oi-cyan); }
.oi-logo--image { display: inline-flex; }
.oi-logo__image { display: block; width: 220px; max-width: 100%; height: auto; }

.oi-nav { display: flex; align-items: center; }
.oi-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.oi-nav a { font-size: 15px; font-weight: 500; color: var(--oi-body); }
.oi-nav a:hover, .oi-nav a.is-active { color: var(--oi-blue); font-weight: 700; }

.oi-header__utility { display: flex; align-items: center; gap: 18px; }
.oi-icon-link { position: relative; color: var(--oi-ink); display: inline-flex; }
/* The search toggle is a real <button> (it opens a dialog, it doesn't
   navigate) — strip the UA button chrome so it renders like its sibling
   icon links. */
button.oi-icon-link { background: none; border: none; padding: 0; cursor: pointer; }
.oi-cart-count {
	position: absolute; top: -8px; inset-inline-end: -10px;
	background: var(--oi-tint-blue); color: var(--oi-blue);
	font-size: 10.5px; font-weight: 700;
	min-width: 17px; height: 17px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	padding: 0 3px;
}

.oi-header__desktop-icons { display: flex; align-items: center; gap: 18px; }
.oi-header__mobile-icons { display: none; align-items: center; gap: 14px; }
.oi-header__mobile-toggle { display: none; background: none; border: none; color: var(--oi-ink); padding: 4px; }

@media (max-width: 960px) {
	.oi-header { top: 26px; }
	.oi-nav, .oi-header__utility .oi-btn, .oi-header__desktop-icons { display: none; }
	.oi-logo { font-size: 18px; }
	.oi-logo__image { width: 160px; }
	.oi-header__mobile-toggle,
	.oi-header__mobile-icons { display: inline-flex; }
	.oi-header .oi-container { padding-block: 12px; }
}

/* Full-screen mobile menu */
.oi-mobile-menu {
	position: fixed;
	inset: 0;
	background: #fff;
	z-index: 60;
	display: none;
	flex-direction: column;
	animation: oiFadeInUp .25s ease;
}
.oi-mobile-menu.is-open { display: flex; }
.oi-mobile-menu__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px; border-bottom: 1px solid var(--oi-border-soft);
}
.oi-mobile-menu__close {
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--oi-ice); border: none; display: inline-flex;
	align-items: center; justify-content: center; color: var(--oi-ink);
}
.oi-mobile-menu__body { flex: 1; overflow-y: auto; padding: 8px 20px 24px; }
.oi-mobile-menu__nav a,
.oi-mobile-menu__util a {
	display: flex; align-items: center; gap: 10px;
	padding: 16px 4px; font-size: 16px; font-weight: 700; color: var(--oi-ink);
	border-bottom: 1px solid var(--oi-border-soft);
}
.oi-mobile-menu__nav a.is-active { color: var(--oi-blue); }
.oi-mobile-menu__foot {
	padding: 18px 20px; border-top: 1px solid var(--oi-border-soft);
	display: flex; flex-direction: column; gap: 12px;
}
.oi-mobile-menu__support { font-size: 13px; color: var(--oi-success); display: flex; align-items: center; gap: 6px; }

/* Search overlay (opened from the header search buttons) */
.oi-search-overlay { position: fixed; inset: 0; z-index: 70; }
.oi-search-overlay[hidden] { display: none; }
.oi-search-overlay__backdrop {
	position: absolute; inset: 0;
	background: rgba(11, 18, 42, .55);
	backdrop-filter: blur(3px);
}
.oi-search-overlay__panel {
	position: relative;
	max-width: 640px;
	margin: 14vh auto 0;
	background: #fff;
	border-radius: var(--oi-radius-lg);
	box-shadow: var(--oi-shadow-hero);
	padding: 28px;
	animation: oiFadeInUp .2s ease;
}
.oi-search-overlay__form { display: flex; gap: 10px; }
.oi-search-overlay__form input[type="search"] {
	flex: 1; min-width: 0;
	border: 1.5px solid var(--oi-border);
	border-radius: var(--oi-radius-sm);
	padding: 13px 16px;
	font-size: 15px;
}
.oi-search-overlay__form input[type="search"]:focus { border-color: var(--oi-blue); outline: none; }
.oi-search-overlay__close {
	position: absolute; top: -46px; inset-inline-end: 0;
	width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255, 255, 255, .14); border: none; color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
}
.oi-search-overlay__hint { margin-top: 14px; font-size: 12px; color: var(--oi-faint); }

@media (max-width: 782px) {
	.oi-search-overlay__panel { margin: 0; max-width: none; border-radius: 0 0 var(--oi-radius-lg) var(--oi-radius-lg); padding: 20px; padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
	.oi-search-overlay__close { position: static; background: var(--oi-ice); color: var(--oi-ink); flex-shrink: 0; margin-bottom: 12px; }
	.oi-search-overlay__form { align-items: center; }
	.oi-search-overlay__form .oi-btn { padding-inline: 16px; }
	.oi-search-overlay__hint { display: none; }
}

@keyframes oiFadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes oiFloatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Footer */
.oi-footer { background: var(--oi-navy-900); color: var(--oi-faint); padding: 64px 0 0; }
.oi-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
}
.oi-footer h3 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.oi-footer p { color: var(--oi-footer-muted); font-size: 13.5px; line-height: 1.8; margin-top: 12px; }
.oi-footer ul { display: flex; flex-direction: column; gap: 10px; }
.oi-footer a { color: var(--oi-faint); font-size: 13.5px; }
.oi-footer a:hover { color: #fff; }
.oi-footer__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.oi-footer__badge {
	width: 44px; height: 44px; border-radius: 10px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
	display: flex; align-items: center; justify-content: center;
	font-size: 9px; color: var(--oi-faint); font-family: monospace; text-align: center;
}
.oi-footer__badge--html {
	width: auto; height: auto; background: none; border: none;
	display: inline-flex; align-items: center; justify-content: center;
}
.oi-footer__badge--html img { max-height: 116px; width: auto; display: block; }
.oi-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding: 20px 0;
	text-align: center;
	font-size: 12.5px;
	color: var(--oi-footer-copy);
}

@media (max-width: 960px) {
	.oi-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
	.oi-footer { padding-top: 40px; }
}

/* Floating mobile bottom CTA bar used on shop/product/cart pages.
   position: fixed, not sticky — the bar is the last element of the page
   content, and a sticky element already sitting at its final flow position
   never sticks, it just renders inline above the footer (the original bug).
   body.has-sticky-cta (added via body_class in inc/woocommerce.php on the
   pages that render the bar) reserves matching bottom space so the bar never
   covers the end of the real content. */
.oi-sticky-cta {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
	background: #fff; border-top: 1px solid var(--oi-border);
	box-shadow: var(--oi-shadow-sticky);
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	display: none;
	align-items: center; justify-content: space-between; gap: 12px;
}
@media (max-width: 782px) {
	.oi-sticky-cta { display: flex; }
	body.has-sticky-cta { padding-bottom: 84px; }
}
.oi-sticky-cta.is-hidden { display: none !important; }
.oi-sticky-cta__label { font-size: 10.5px; color: var(--oi-faint); }
.oi-sticky-cta__value { font-size: 14px; font-weight: 800; color: var(--oi-ink); }

/* Breadcrumb */
.oi-breadcrumb { font-size: 13px; color: var(--oi-faint); padding: 18px 0; }
.oi-breadcrumb a { color: var(--oi-faint); }
.oi-breadcrumb a:hover { color: var(--oi-blue); }
.oi-breadcrumb .is-current { color: var(--oi-ink); font-weight: 700; }
.oi-breadcrumb__sep { margin: 0 6px; }
