/*--------------------------------------------------------------
Jumstore – header stylesheet
Announcement bar, main header, search, navigation, mega menu,
mobile bottom nav.
--------------------------------------------------------------*/

/* Announcement bar
--------------------------------------------------------------*/
.jum-topbar {
	background: var(--jum-dark);
	color: #D1D5DB;
	font-size: 13px;
}

.jum-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}

.jum-topbar__announce {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #E5E7EB;
}

.jum-topbar__announce strong {
	color: var(--jum-primary);
	font-weight: 700;
}

.jum-topbar__announce .jum-icon {
	width: 15px;
	height: 15px;
	color: var(--jum-primary);
	transition: transform 0.18s ease;
}

.jum-topbar__announce:hover .jum-icon {
	transform: translateX(3px);
}

.jum-topbar__right {
	display: flex;
	align-items: center;
	gap: 22px;
}

.jum-topbar__shipping {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.jum-topbar__shipping .jum-icon {
	width: 16px;
	height: 16px;
	color: var(--jum-primary);
}

.jum-topbar__help:hover {
	color: #fff;
}

.jum-topbar .jum-dropdown__toggle .jum-icon--globe {
	width: 15px;
	height: 15px;
}

/* Main header
--------------------------------------------------------------*/
.jum-header {
	background: #fff;
	border-bottom: 1px solid var(--jum-border-soft);
}

.jum-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 82px;
}

.jum-header.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 90;
	box-shadow: var(--jum-shadow);
	animation: jum-slide-down 0.28s ease;
}

@keyframes jum-slide-down {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

.jum-header.is-fixed .jum-header__inner {
	min-height: 66px;
}

.jum-header__burger {
	display: none;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border-radius: var(--jum-radius-sm);
	border: 1px solid var(--jum-border);
}

/* Logo */
.jum-logo {
	display: inline-flex;
	align-items: center;
	gap: 11px;
}

.jum-logo__icon {
	position: relative;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--jum-primary), var(--jum-primary-dark));
	border-radius: 12px;
	color: #fff;
	box-shadow: 0 6px 16px rgba(255, 106, 0, 0.35);
}

.jum-logo__icon .jum-icon {
	width: 24px;
	height: 24px;
	opacity: 0.4;
}

.jum-logo__letter {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	font-weight: 800;
	padding-top: 4px;
}

.jum-logo__text {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.4px;
	line-height: 1;
}

.jum-logo__a { color: var(--jum-text); }
.jum-logo__b { color: var(--jum-primary); }

/* Search */
.jum-header__search {
	flex: 1;
	max-width: 620px;
	position: relative;
}

.jum-search__form {
	display: flex;
	align-items: stretch;
	border: 2px solid var(--jum-primary);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.18s ease;
}

.jum-search__form:focus-within {
	box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.16);
}

.jum-search__cat {
	display: flex;
	align-items: center;
	border-right: 1px solid var(--jum-border-soft);
	background: var(--jum-soft);
}

.jum-search__cat select {
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--jum-muted);
	padding: 0 12px;
	height: 100%;
	max-width: 150px;
	border-radius: 0;
	cursor: pointer;
}

.jum-search__cat select:focus {
	box-shadow: none;
}

.jum-search__field {
	flex: 1;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 12px 16px;
	font-size: 14px;
	min-width: 0;
}

.jum-search__submit {
	width: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--jum-primary);
	color: #fff;
	transition: background-color 0.18s ease;
}

.jum-search__submit:hover {
	background: var(--jum-primary-dark);
}

/* Live search results */
.jum-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 80;
	background: #fff;
	border: 1px solid var(--jum-border-soft);
	border-radius: var(--jum-radius-md);
	box-shadow: var(--jum-shadow-lg);
	padding: 8px;
	max-height: 420px;
	overflow: auto;
}

.jum-search__result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: var(--jum-radius-sm);
}

.jum-search__result:hover {
	background: var(--jum-soft);
}

.jum-search__result img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: var(--jum-radius-sm);
	background: var(--jum-soft);
}

.jum-search__result-title {
	font-size: 14px;
	font-weight: 600;
	display: block;
}

.jum-search__result-price {
	font-size: 13px;
	color: var(--jum-primary);
	font-weight: 700;
}

.jum-search__empty {
	padding: 14px;
	font-size: 13px;
	color: var(--jum-muted);
	text-align: center;
}

/* Header actions */
.jum-header__actions {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}

.jum-header__action {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	color: var(--jum-muted);
	font-weight: 600;
}

.jum-header__action:hover {
	color: var(--jum-primary);
}

.jum-header__action .jum-icon {
	width: 23px;
	height: 23px;
	color: var(--jum-text);
	transition: color 0.18s ease;
}

.jum-header__action:hover .jum-icon {
	color: var(--jum-primary);
}

.jum-header__action .jum-count {
	top: -4px;
	right: auto;
	left: calc(50% + 6px);
}

.jum-header__action--wishlist.is-active .jum-icon {
	color: var(--jum-red);
}

/* Navigation bar
--------------------------------------------------------------*/
.jum-navbar {
	background: #fff;
	border-bottom: 1px solid var(--jum-border-soft);
}

.jum-navbar__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 56px;
}

/* All Categories mega */
.jum-cats {
	position: relative;
}

.jum-cats__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 18px;
	background: var(--jum-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--jum-radius-sm);
	transition: background-color 0.18s ease;
	min-width: 230px;
}

.jum-cats__toggle:hover {
	background: var(--jum-primary-dark);
}

.jum-cats__toggle .jum-icon {
	width: 17px;
	height: 17px;
}

.jum-cats__toggle .jum-icon:last-child {
	margin-left: auto;
}

.jum-cats__panel {
	left: 0;
	right: auto;
	width: 560px;
	padding: 14px;
}

.jum-cats__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 14px;
}

.jum-cats__list {
	list-style: none;
	max-height: 430px;
	overflow-y: auto;
}

.jum-cats__list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: var(--jum-radius-sm);
	font-size: 14px;
	font-weight: 600;
}

.jum-cats__list a:hover {
	background: var(--jum-soft);
	color: var(--jum-primary);
}

.jum-cats__list img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--jum-soft);
}

.jum-cats__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jum-cats__count {
	font-size: 12px;
	font-weight: 600;
	color: var(--jum-muted);
	background: var(--jum-soft);
	border-radius: var(--jum-radius-pill);
	padding: 1px 8px;
}

.jum-cats__list .jum-icon {
	width: 15px;
	height: 15px;
	color: var(--jum-muted);
}

.jum-cats__all a {
	color: var(--jum-primary);
	border-top: 1px solid var(--jum-border-soft);
	border-radius: 0;
	margin-top: 4px;
}

.jum-cats__promo {
	background: linear-gradient(160deg, var(--jum-primary-soft), #FFE4CC);
	border-radius: var(--jum-radius-md);
	padding: 18px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.jum-cats__promo-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--jum-primary-dark);
}

.jum-cats__promo-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
}

.jum-cats__promo-img {
	max-height: 130px;
	align-self: center;
	margin: 6px 0;
}

/* Primary menu */
.jum-nav {
	flex: 1;
}

.jum-nav__list {
	display: flex;
	align-items: center;
	gap: 25px;
	list-style: none;
}

.jum-nav__list > li {
	position: relative;
}

.jum-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 16px 0;
	font-size: 14.5px;
	font-weight: 600;
}

.jum-nav__list > li > a:hover,
.jum-nav__list > li.current-menu-item > a {
	color: var(--jum-primary);
}

.jum-nav__list > li > a .jum-icon {
	width: 15px;
	height: 15px;
}

.jum-nav__badge {
	display: inline-block;
	background: var(--jum-red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 2px 7px;
	border-radius: var(--jum-radius-pill);
	transform: translateY(-7px);
}

.jum-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -14px;
	z-index: 70;
	min-width: 210px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--jum-border-soft);
	border-radius: var(--jum-radius-sm);
	box-shadow: var(--jum-shadow-lg);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.jum-nav__list li:hover > .sub-menu,
.jum-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.jum-nav__list .sub-menu a {
	display: block;
	padding: 8px 12px;
	font-size: 14px;
	border-radius: 6px;
}

.jum-nav__list .sub-menu a:hover {
	background: var(--jum-soft);
	color: var(--jum-primary);
}

.jum-nav__list .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
}

/* Flash sale link */
.jum-navbar__flash {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 700;
	color: var(--jum-primary);
}

.jum-navbar__flash .jum-icon {
	width: 18px;
	height: 18px;
	animation: jum-flash-pulse 1.6s ease infinite;
}

@keyframes jum-flash-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.16); }
}

/* Mobile bottom navigation
--------------------------------------------------------------*/
.jum-mobile-nav {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 95;
	background: #fff;
	border-top: 1px solid var(--jum-border-soft);
	box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.jum-mobile-nav__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex: 1;
	font-size: 11px;
	font-weight: 600;
	color: var(--jum-muted);
	padding: 4px 0;
}

.jum-mobile-nav__item .jum-icon {
	width: 21px;
	height: 21px;
}

.jum-mobile-nav__item.is-active,
.jum-mobile-nav__item:hover {
	color: var(--jum-primary);
}

.jum-mobile-nav__item .jum-count {
	top: -2px;
	right: auto;
	left: calc(50% + 5px);
}
