/* ============================================================
   Shades Of Pearls — Header & Footer
   Exact Kraftsmiths Design Language:
   - Cream announcement marquee
   - Single-row header (Logo Left · Nav Center · Icons Right)
   - Title case typography (Nunito Sans 14px, 500wt)
   - 2-Column 16px rounded submenus
   - Deep forest green 4-column footer
   ============================================================ */

/* ── 1. Announcement Bar (Topbar) ─────────────────────────── */
.topbar {
	background: var(--sop-bg-cream);
	color: var(--sop-text);
	border: 0;
	padding: 0;
	border-bottom: 1px solid rgba(18, 18, 18, .06);
}
.topbar .container,
.topbar .container-fluid {
	max-width: none;
	padding: 0;
}

/* Marquee */
.sop-marquee {
	overflow: hidden;
	white-space: nowrap;
	width: 100%;
	line-height: 1;
}
.sop-marquee__track {
	display: inline-flex;
	animation: sop-marquee 35s linear infinite;
}
.sop-marquee__track span {
	padding: 8px 2.5rem;
	font-size: 11px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--sop-green);
}

@keyframes sop-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.sop-marquee:hover .sop-marquee__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	.sop-marquee__track { animation: none; }
	.sop-marquee__track span[aria-hidden="true"] { display: none; }
	.sop-marquee { text-align: center; white-space: normal; }
}

/* ── 2. Site Header (Kraftsmiths Single-Row Layout) ───────── */
.site-header {
	background: var(--sop-bg-cream) !important;
	border-bottom: 1px solid rgba(18, 18, 18, .08);
	padding: 6px 0;
	transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
	position: relative;
	z-index: 999;
}

/* Sticky state */
.site-header.is-sticky,
.site-header.header-sticky--normal,
.site-header.headroom--not-top {
	background: var(--sop-bg-cream) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
	padding: 4px 0;
}

/* Flex layout across logo, menu, and icons */
.site-header .sober-container {
	max-width: var(--sop-page-width);
	padding: 0 30px;
}
.site-header .row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin: 0 !important;
}

/* ── Logo (Left) ─────────────────────────────────────────── */
.site-header .site-branding {
	flex: 0 0 auto !important;
	width: auto !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	margin: 0;
}
.site-header .site-branding .logo {
	display: inline-block;
	line-height: 1;
}
.site-header .site-branding .logo img {
	width: auto !important;
	height: auto;
	max-height: 46px;
	max-width: 145px;
	object-fit: contain;
	display: block;
	transition: max-height .2s ease;
}
.site-header.is-sticky .site-branding .logo img {
	max-height: 40px;
}
.site-header .site-title {
	display: none;
}

/* ── Navigation (Center) ─────────────────────────────────── */
.site-header .main-navigation {
	flex: 1 1 auto !important;
	width: auto !important;
	padding: 0 16px !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center;
}
.site-header .nav-menu {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	gap: 4px;
}

/* Menu Items (Title Case / Capitalized like Kraftsmiths) */
.site-header .nav-menu > li {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-header .nav-menu > li > a,
.main-navigation a,
.site-header .menu-item > a {
	font-family: var(--sop-font) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: .2px !important;
	text-transform: capitalize !important; /* Kraftsmiths title case */
	color: #121212 !important;
	padding: 10px 14px !important;
	display: inline-flex !important;
	align-items: center !important;
	line-height: 1.2 !important;
	transition: color .2s ease;
	text-decoration: none !important;
}

/* Dropdown arrow indicator */
.site-header .nav-menu > li.menu-item-has-children > a::after {
	content: '' !important;
	display: inline-block !important;
	width: 5px !important;
	height: 5px !important;
	border-right: 1.5px solid currentColor !important;
	border-bottom: 1.5px solid currentColor !important;
	transform: rotate(45deg) !important;
	margin-left: 6px !important;
	margin-top: -2px !important;
	transition: transform .2s ease !important;
}
.site-header .nav-menu > li.menu-item-has-children:hover > a::after {
	transform: rotate(-135deg) !important;
	margin-top: 2px !important;
}

/* Hover state */
.site-header .nav-menu > li:hover > a,
.site-header .nav-menu > li.current-menu-item > a {
	color: var(--sop-brown) !important;
}

/* Sale item accent */
.site-header .nav-menu > li.menu-item-sale > a,
.site-header .nav-menu > li > a[href*="on_sale=1"] {
	color: var(--sop-red) !important;
	font-weight: 600 !important;
}

/* ── Submenus (Kraftsmiths 2-Column Rounded Popup) ────────── */
.site-header .sub-menu {
	background: #FFFFFF !important;
	border-radius: 16px !important; /* Kraftsmiths 16px radius */
	box-shadow: 0 12px 36px rgba(18, 18, 18, .12) !important;
	border: 1px solid rgba(18, 18, 18, .06) !important;
	padding: 16px 18px !important;
	margin-top: 6px !important;
	min-width: 300px !important;
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
}
.site-header .nav-menu > li:hover > .sub-menu {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(130px, 1fr)) !important;
	gap: 6px 14px !important;
}
.site-header .sub-menu li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.site-header .sub-menu li a {
	font-family: var(--sop-font) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: capitalize !important;
	color: #121212 !important;
	padding: 8px 12px !important;
	border-radius: 8px !important;
	display: block !important;
	white-space: nowrap !important;
	transition: background .15s ease, color .15s ease !important;
}
.site-header .sub-menu li a:hover {
	background: var(--sop-bg-cream) !important;
	color: var(--sop-green) !important;
}
.site-header .sub-menu li.menu-item-sale a,
.site-header .sub-menu li a[href*="on_sale=1"] {
	color: var(--sop-red) !important;
	font-weight: 600 !important;
}

/* ── Header Icons (Right) ─────────────────────────────────── */
.site-header .header-icon {
	flex: 0 0 auto !important;
	width: auto !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
}
.site-header .header-icon ul {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.site-header .header-icon li {
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
}
.site-header .header-icon a {
	color: #121212 !important;
	display: inline-flex;
	align-items: center;
	transition: opacity .15s ease, transform .15s ease;
	line-height: 1;
}
.site-header .header-icon a:hover {
	opacity: .75;
	transform: scale(1.08);
}
.site-header .header-icon svg,
.site-header .header-icon i {
	font-size: 18px;
	fill: currentColor;
}

/* Cart counter badge */
.site-header .header-cart .cart-counter,
.site-header .cart-contents .count,
.header-cart-count {
	background: var(--sop-green) !important;
	color: #FFFFFF !important;
	font-family: var(--sop-font) !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	border-radius: 50% !important;
	min-width: 18px !important;
	height: 18px !important;
	line-height: 18px !important;
	text-align: center !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-left: 4px;
	padding: 0 3px;
}

/* Hide currency/language switchers */
.header-icon-left { display: none !important; }

/* ── Mobile Header ────────────────────────────────────────── */
@media (max-width: 1024px) {
	.site-header .sober-container { padding: 0 16px; }
	.site-header .main-navigation { display: none !important; }
	.site-header .mobile-nav-toggle {
		flex: 0 0 auto !important;
		width: auto !important;
		display: flex !important;
		align-items: center !important;
	}
	.site-header .mobile-nav-toggle .toggle-nav {
		font-size: 20px;
		color: #121212;
		cursor: pointer;
	}
	.site-header .site-branding {
		flex: 1 1 auto !important;
		justify-content: center !important;
	}
	.site-header .site-branding .logo img {
		max-height: 38px;
	}
	.site-header .header-icon {
		flex: 0 0 auto !important;
	}
}

/* Prevent horizontal page overflow */
/* Overflow is contained on individual components. */

/* ── 3. Footer (Kraftsmiths Dark Green Theme) ─────────────── */
.site-footer,
.footer-widgets,
.footer-main,
.footer-content {
	background: var(--sop-green) !important;
	color: rgba(255, 255, 255, .85);
}

.site-footer { border-top: 2px solid var(--sop-brown); }

.footer-widgets .widget-title,
.site-footer .widget-title {
	font-family: var(--sop-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--sop-white);
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.site-footer a,
.footer-widgets a {
	color: rgba(255, 255, 255, .80);
	transition: color .2s ease;
}
.site-footer a:hover,
.footer-widgets a:hover {
	color: var(--sop-bg-cream);
	text-decoration: underline;
}

.footer-widgets .menu li {
	margin-bottom: 10px;
	list-style: none;
	padding: 0;
}
.footer-widgets .menu li a {
	font-size: 14px;
	line-height: 1.5;
}

.footer-widgets .textwidget p {
	font-size: 14px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .75);
	margin-bottom: 16px;
}

.footer-widgets .mc4wp-form input[type="email"] {
	background: transparent;
	color: var(--sop-white);
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: var(--sop-radius);
	padding: 10px 14px;
	width: 100%;
	margin-bottom: 8px;
	font-family: var(--sop-font);
}
.footer-widgets .mc4wp-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .5); }
.footer-widgets .mc4wp-form input[type="submit"] {
	background: var(--sop-bg-cream);
	color: var(--sop-green);
	border-color: var(--sop-bg-cream);
	border-radius: var(--sop-radius);
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	width: 100%;
}
.footer-widgets .mc4wp-form input[type="submit"]:hover {
	background: var(--sop-white);
	border-color: var(--sop-white);
}

.sop-contact {
	font-size: 13px;
	color: rgba(255, 255, 255, .75);
	line-height: 1.8;
	margin-top: 12px;
}

.footer-widgets .sober-socials a,
.footer-widgets .social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	margin-right: 8px;
	transition: border-color .2s, background .2s;
}
.footer-widgets .sober-socials a:hover,
.footer-widgets .social-links a:hover {
	border-color: var(--sop-white);
	background: rgba(255, 255, 255, .1);
}

.site-footer .footer-copyright,
.site-footer .site-info,
.footer-copyright {
	background: rgba(0, 0, 0, .18) !important;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 12px;
	color: rgba(255, 255, 255, .65);
	padding: 12px 20px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.sop-payments {
	display: inline-flex;
	gap: 6px;
	margin-left: 12px;
	vertical-align: middle;
	flex-wrap: wrap;
}
.sop-pay {
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .5px;
	color: rgba(255, 255, 255, .80);
}

@media (max-width: 767px) {
	.footer-widgets .widget { margin-bottom: 28px; }
	.sop-payments { margin: 10px 0 0; display: flex; }
	.footer-copyright { flex-direction: column; align-items: flex-start; }
	.sop-marquee__track span { font-size: 10px; padding: 8px 1.5rem; }
}

/* Refine existing Sober header and footer, preserving mobile controls. */
body > .runtext-container { display: none; }
.topbar { background: var(--sop-bg-cream) !important; position: relative; z-index: 1000; }
.topbar .sober-container,.topbar .topbar-content { padding: 0; }
.sop-marquee__track span { padding-top: 12px; padding-bottom: 12px; }
.site-header { padding: 18px 0; }
.site-header .site-branding .logo img { max-height: 58px; max-width: 155px; }
.site-header .site-branding .logo-light { display: none; }
/* Final supplied white logo: green mount, with its transparent outer padding clipped in CSS. */
.site-header .site-branding .logo:has(img[src*="sop-final-logo"]) { position: relative; display: block; width: 172px; height: 76px; overflow: hidden; background: var(--a-green); border-radius: 3px; }
.site-header .site-branding .logo img[src*="sop-final-logo"] { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 184px !important; height: 184px !important; max-width: none !important; max-height: none !important; object-fit: contain; }
.site-header .site-branding .logo img.logo-light[src*="sop-final-logo"] { display: none !important; }
@media (max-width: 767px) {
 .site-header .site-branding .logo:has(img[src*="sop-final-logo"]) { width: 138px; height: 60px; }
 .site-header .site-branding .logo img[src*="sop-final-logo"] { width: 146px !important; height: 146px !important; }
}
.site-header .nav-menu > li > a::before { display: none !important; }
.site-header .nav-menu > li > a { padding: 10px 11px !important; }
.site-header .nav-menu > li:focus-within > .sub-menu { display: grid !important; grid-template-columns: repeat(2,minmax(130px,1fr)); gap: 6px 14px; opacity: 1; visibility: visible; }
.site-header .sub-menu { margin-top: 0 !important; }
.site-header .header-icon a { padding: 0 !important; }
.site-footer .footer-widgets { padding: 64px 0 44px; }
.site-footer .widget-title { text-transform: none; font-size: 19px; font-weight: 400; letter-spacing: .2px; border: 0; }
.site-footer .footer-info { border-top: 1px solid rgba(255,255,255,.16); padding: 22px 0; }
.site-footer .site-info { background: transparent !important; border: 0; padding: 0 15px; }
.site-footer .copyright { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-footer .footer-menu { display: none; }
.sop-footer-socials { display: flex; gap: 18px; margin-top: 20px; }
@media (min-width:1025px) and (max-width:1199px) {
 .site-header .main-navigation { display: none !important; }
 .site-header .mobile-nav-toggle { display: flex !important; }
 .site-header .site-branding { flex: 1 1 auto !important; justify-content: center; }
 .site-header .header-icon > ul { display: none !important; }
 .site-header .menu-item-mobile-cart { display: inline-flex !important; }
}
@media (max-width:1024px) {
 .site-header { padding: 14px 0; }
 .site-header .header-icon > ul { display: none !important; }
 .site-header .mobile-nav-toggle,.site-header .header-icon { flex: 0 0 44px !important; }
 .site-header .site-branding .logo img { max-height: 48px; }
}

.topbar { height: auto !important; overflow: hidden; }
@media (max-width:767px) { .topbar { min-height: 34px; } }
/* Sober demo accounts are not store contact links. */
.site-footer a[href$="/uix"],.site-footer a[href$="/uix/"] { display: none !important; }
.site-header .nav-menu > li.menu-item-has-children > a::after { position: static !important; background: transparent !important; }

/* Sober's 39px submenu hover bridge sits over the parent link once a dropdown is open,
   blocking clicks on it. Dropdowns start flush under their link, so 6px is enough. */
@media (min-width: 1200px) {
	.site-header .nav-menu > li > .sub-menu::before { top: -6px !important; height: 6px !important; }
}
/* Shop by Type has only 3 items: one column instead of the 2-column grid. */
@media (min-width: 1200px) {
	.site-header .nav-menu > li:has(> a[href*="/shop-by-type/"]) > .sub-menu { min-width: 220px !important; }
	.site-header .nav-menu > li:has(> a[href*="/shop-by-type/"]):hover > .sub-menu,
	.site-header .nav-menu > li:has(> a[href*="/shop-by-type/"]):focus-within > .sub-menu { grid-template-columns: 1fr !important; }
}

/* Homepage A (client-approved 2026-10-14): warm, taller announcement band and A's footer type, on every page. */
.topbar { background: #e9dccb !important; border-bottom: 0; }
.sop-marquee { display: flex; align-items: center; min-height: 46px; }
.sop-marquee__track span { padding: 14px 32px; font-size: 12.5px; letter-spacing: 1.8px; color: #2b2a27; }
.site-footer .widget-title { font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.site-footer .footer-widgets a, .site-footer .footer-widgets p { font-size: 15px; line-height: 1.9; }
@media (max-width: 767px) {
	.sop-marquee { min-height: 40px; }
	.sop-marquee__track span { padding: 11px 22px; font-size: 11px; }
}
/* Pages set to Sober's transparent header (Contact us) float it over the page title: use the solid header everywhere. */
.header-transparent .site-header { position: relative !important; top: 0 !important; background: var(--sop-bg-cream) !important; }

/* Client-approved full green header: white logo blends into the same surface. */
.site-header,
.site-header.is-sticky,
.site-header.header-sticky--normal,
.site-header.headroom--not-top,
.header-transparent .site-header {
 background: var(--a-green, #2b4a40) !important;
 color: var(--a-bg, #fbf6ef);
 border-bottom-color: rgba(255, 255, 255, .12);
}
.site-header .site-branding .logo:has(img[src*="sop-final-logo"]) { background: transparent; }
.site-header .nav-menu > li > a,
.site-header .header-icon a,
.site-header .mobile-nav-toggle .toggle-nav,
.site-header .menu-item-mobile-cart {
 color: var(--a-bg, #fbf6ef) !important;
}
.site-header .nav-menu > li:hover > a,
.site-header .nav-menu > li.current-menu-item > a,
.site-header .nav-menu > li.current-menu-ancestor > a { color: var(--a-gold-soft, #e6cfa3) !important; }
.site-header .nav-menu > li > a::after { background-color: currentColor; }
.site-header .cart-contents .count { background: var(--a-ivory, #f1e7da) !important; color: var(--a-green, #2b4a40) !important; }
.site-header :focus-visible { outline-color: var(--a-gold-soft, #e6cfa3); }
.site-header .header-icon svg { stroke: currentColor !important; }
