/* =========================================================
   SPECTRA BETTA — HEADER.CSS
   Top bar + main header (logo, navigasi, search, wishlist,
   cart, tombol WhatsApp).
   ========================================================= */

/* ---------------------------------------------------------
   TOP BAR
   --------------------------------------------------------- */
.sb-topbar {
	background-color: #020202;
	border-bottom: 1px solid var(--sb-border);
}

.sb-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 32px;
	gap: 24px;
}

.sb-topbar__left {
	display: flex;
	align-items: center;
	gap: 24px;
	overflow-x: auto;
	scrollbar-width: none;
}

.sb-topbar__left::-webkit-scrollbar {
	display: none;
}

.sb-topbar__left li {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	font-size: 12px;
	color: var(--sb-text-secondary);
}

.sb-topbar__left li svg {
	flex-shrink: 0;
	color: var(--sb-muted);
}

.sb-topbar__right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.sb-topbar__live-text {
	font-size: 12px;
	color: var(--sb-text-secondary);
	white-space: nowrap;
}

.sb-topbar__social {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sb-topbar__social a {
	display: flex;
	color: var(--sb-text-secondary);
	transition: color var(--sb-transition);
}

.sb-topbar__social a:hover {
	color: var(--sb-yellow);
}

/* ---------------------------------------------------------
   MAIN HEADER
   --------------------------------------------------------- */
.sb-header {
	position: sticky;
	top: 0;
	z-index: 500;
	height: 68px;
	background-color: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--sb-border);
}

.sb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}

/* Logo */
.sb-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.sb-logo__icon {
	color: var(--sb-red);
	display: flex;
}

.sb-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.sb-logo__spectra {
	font-size: 19px;
	font-weight: 800;
	color: var(--sb-yellow);
	letter-spacing: 0.5px;
}

.sb-logo__betta {
	font-size: 12px;
	font-weight: 700;
	color: var(--sb-white);
	letter-spacing: 3px;
	margin-top: 2px;
}

/* Navigation */
.sb-nav ul {
	display: flex;
	align-items: center;
	gap: 30px;
}

.sb-nav a {
	position: relative;
	display: inline-block;
	padding: 24px 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.4px;
	color: var(--sb-text-secondary);
	transition: color var(--sb-transition);
}

.sb-nav li:hover a {
	color: var(--sb-white);
}

.sb-nav li.is-active a {
	color: var(--sb-yellow);
}

.sb-nav li.is-active a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	height: 2px;
	background-color: var(--sb-yellow);
}

/* Header actions (right side) */
.sb-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.sb-icon-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--sb-radius-md);
	color: var(--sb-white);
	transition: background-color var(--sb-transition), color var(--sb-transition);
}

.sb-icon-btn:hover {
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--sb-yellow);
}

.sb-cart-btn {
	margin-right: 4px;
}

.sb-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background-color: var(--sb-red-bright);
	color: var(--sb-white);
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.sb-btn-wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 16px;
	margin-left: 8px;
	border: 1px solid var(--sb-yellow);
	border-radius: 999px;
	color: var(--sb-white);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	white-space: nowrap;
	transition: background-color var(--sb-transition), transform var(--sb-transition);
}

.sb-btn-wa:hover {
	background-color: rgba(255, 230, 0, 0.1);
	transform: translateY(-1px);
}

/* ---------------------------------------------------------
   HAMBURGER (mobile only — disembunyikan di desktop di sini,
   ditampilkan lagi lewat responsive.css di ≤768px)
   --------------------------------------------------------- */
.sb-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 38px;
	height: 38px;
	border-radius: var(--sb-radius-md);
}

.sb-hamburger:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

.sb-hamburger span {
	display: block;
	width: 18px;
	height: 2px;
	background-color: var(--sb-white);
	border-radius: 2px;
	transition: transform var(--sb-transition), opacity var(--sb-transition);
}

.sb-drawer-open .sb-hamburger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.sb-drawer-open .sb-hamburger span:nth-child(2) {
	opacity: 0;
}

.sb-drawer-open .sb-hamburger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------
   MOBILE NAV DRAWER
   --------------------------------------------------------- */
.sb-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 900;
	width: min(320px, 84vw);
	height: 100vh;
	height: 100dvh;
	background-color: var(--sb-bg-soft);
	border-left: 1px solid var(--sb-border);
	transform: translateX(100%);
	transition: transform 320ms ease;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.sb-mobile-drawer.is-open {
	transform: translateX(0);
}

.sb-mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--sb-border);
}

.sb-mobile-drawer__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--sb-radius-md);
	color: var(--sb-white);
}

.sb-mobile-drawer__close:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

.sb-mobile-drawer__nav ul {
	display: flex;
	flex-direction: column;
	padding: 8px 20px;
}

.sb-mobile-drawer__nav a {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid var(--sb-border);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--sb-text-secondary);
}

.sb-mobile-drawer__nav li.is-active a {
	color: var(--sb-yellow);
}

.sb-mobile-drawer__actions {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	border-top: 1px solid var(--sb-border);
}

.sb-mobile-drawer__link {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sb-text-secondary);
}

.sb-mobile-drawer__overlay {
	position: fixed;
	inset: 0;
	z-index: 890;
	background-color: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 320ms ease;
}

.sb-mobile-drawer__overlay.is-visible {
	opacity: 1;
}

.sb-drawer-open {
	overflow: hidden;
}
