/* =========================
   BREAKPOINTS
========================= */
/* Mobile */
/* Tablet */
/* Desktop */
/* =======================
   HEADER
======================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1999;
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.site-header .navbar {
  width: 100%;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

/* =======================
   GLASS MODE
======================= */
.navbar-glass {
  background: rgba(239, 242, 246, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar-glass .navbar-container .navbar-brand .brand-white {
  display: none;
}

.navbar-primary {
  background-color: #1ea9e2;
}
.navbar-primary .navbar-container .navbar-brand .brand-white {
  display: block;
}
.navbar-primary .navbar-container .navbar-brand .brand-primary {
  display: none;
}
.navbar-primary .navbar-container .navbar-menu {
  background-color: #1ea9e2;
}
.navbar-primary .navbar-container .navbar-menu .nav-links li {
  color: white;
}
.navbar-primary .navbar-container .navbar-menu .nav-links li::after {
  background: white;
}
.navbar-primary .navbar-container .navbar-menu .navbar-actions .cart-btn {
  color: white;
}
.navbar-primary .navbar-container .navbar-menu .navbar-actions .login-btn {
  color: #1ea9e2;
  background-color: white;
}
.navbar-primary .navbar-container .navbar-toggle span {
  background-color: white;
}

.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* =======================
   CONTAINER
======================= */
.navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* =======================
   LOGO
======================= */
.navbar-brand {
  width: 15%;
}

.brand-logo {
  width: 70%;
  display: block;
}

/* =======================
   MENU
======================= */
.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 85%;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 1rem;
  width: 20%;
  box-sizing: border-box;
}

.nav-links li {
  position: relative;
  color: #1f2937;
  font-weight: bold;
  cursor: pointer;
}

.nav-links li::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1ea9e2;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-links li:hover::after {
  width: 100%;
}

/* =======================
   ACTIONS
======================= */
.navbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
}
.navbar-actions .right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-form {
  display: flex;
  align-items: center;
  width: 280px;
  height: 30px;
  border-radius: 999px;
  background: white;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding-inline: 1rem;
}

.search-form button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding-inline: 1rem;
}

.search-form svg {
  width: 18px;
  height: 18px;
}

/* =======================
   CART BUTTON
======================= */
.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  /* =======================
     CART ICON
  ======================= */
}
.cart-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: transform 0.2s ease;
}
.cart-btn {
  /* =======================
     HOVER
  ======================= */
}
.cart-btn:hover {
  color: #1ea9e2;
  background: rgba(30, 169, 226, 0.08);
}
.cart-btn:hover svg {
  transform: translateY(-1px);
}
.cart-btn {
  /* =======================
     CART BADGE
  ======================= */
}
.cart-btn .cart-badge {
  position: absolute;
  /*
   * Diletakkan di luar sudut ikon,
   * sehingga tidak menutupi keranjang.
   */
  top: -4px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgb(255, 200, 0);
  color: rgb(143, 100, 0);
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.1px;
  white-space: nowrap;
  /*
   * Shadow dibuat halus agar badge
   * terlihat terpisah dari navbar.
   */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  z-index: 5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* =======================
     SHOW
  ======================= */
}
.cart-btn .cart-badge.show {
  display: inline-flex;
  animation: cartBadgeIn 0.25s ease-out;
}
.cart-btn .cart-badge {
  /* =======================
     10+
  ======================= */
}
.cart-btn .cart-badge.has-many {
  min-width: 20px;
  height: 17px;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 9px;
}
.cart-btn .cart-badge {
  /* =======================
     100+
  ======================= */
}
.cart-btn .cart-badge.has-many-many {
  min-width: 25px;
  height: 17px;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 8px;
}
.cart-btn .cart-badge {
  /* =======================
     EMPTY
  ======================= */
}
.cart-btn .cart-badge.empty {
  display: none;
}
.cart-btn .cart-badge {
  /* =======================
     UPDATE ANIMATION
  ======================= */
}
.cart-btn .cart-badge.pulse {
  animation: cartBadgePulse 0.4s ease;
}
.cart-btn {
  /* =======================
     BADGE HOVER
  ======================= */
}
.cart-btn:hover .cart-badge {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.16);
}
.cart-btn {
  /* =======================
     TOOLTIP
  ======================= */
}
.cart-btn::after {
  content: "Keranjang";
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-3px);
  padding: 5px 9px;
  background: #1f2937;
  color: #ffffff;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  z-index: 20;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
.cart-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =======================
   BADGE ANIMATION
======================= */
@keyframes cartBadgeIn {
  from {
    opacity: 0;
    transform: scale(0.65);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* =======================
   BADGE PULSE
======================= */
@keyframes cartBadgePulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
  }
  70% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}
.navbar-primary .cart-btn .cart-badge {
  border-color: #1ea9e2;
}

.navbar-glass .cart-btn .cart-badge {
  border-color: rgba(255, 255, 255, 0.8);
}

/* =======================
   LOGIN BUTTON
======================= */
.login-btn {
  height: 36px;
  display: flex;
  align-items: center;
  padding-inline: 1.5rem;
  border-radius: 999px;
  background: #1ea9e2;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn:hover {
  scale: 1.1;
}

/* =======================
   TOGGLE
======================= */
.navbar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.navbar-toggle span {
  position: absolute;
  left: 8px;
  width: 26px;
  height: 2px;
  background: #1f2937;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggle span:nth-child(1) {
  top: 12px;
}

.navbar-toggle span:nth-child(2) {
  top: 20px;
}

.navbar-toggle span:nth-child(3) {
  top: 28px;
}

/* animated X */
.navbar-toggle.active span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

@keyframes badgeBounceIn {
  0% {
    transform: scale(0) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.4) rotate(5deg);
  }
  70% {
    transform: scale(0.9) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
@keyframes badgePulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.3);
  }
  60% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes badgeShake {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@media (max-width: 1280px) {
  .navbar-menu .nav-links {
    width: 30%;
  }
}
@media (max-width: 1024px) {
  .navbar-container {
    height: 60px;
  }
  .navbar-brand {
    width: 20%;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #eff2f6;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .navbar-menu .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .navbar-actions {
    width: 100%;
    flex-direction: column;
    gap: 2rem;
  }
  .search-form {
    width: 100%;
  }
  .login-btn {
    width: 100%;
    justify-content: center;
  }
  .cart-btn {
    width: 40px;
    height: 40px;
  }
  .cart-btn .cart-badge {
    min-width: 18px;
    height: 18px;
    font-size: 9px;
    top: -2px;
    right: -2px;
    border-width: 1.5px;
  }
  .cart-btn .cart-badge.has-many {
    min-width: 20px;
    font-size: 8px;
  }
  .cart-btn .cart-badge.has-many-many {
    min-width: 22px;
    font-size: 7px;
  }
  .cart-btn svg {
    width: 20px;
    height: 20px;
  }
  .cart-btn::after {
    display: none;
  }
}
@media (max-width: 768px) {
  .navbar-container {
    height: 50px;
  }
  .navbar-menu {
    top: 50px;
  }
  .navbar-toggle {
    width: 32px;
    height: 32px;
  }
  .navbar-toggle span {
    left: 5px;
    width: 22px;
    height: 2px;
  }
  .navbar-toggle span:nth-child(1) {
    top: 9px;
  }
  .navbar-toggle span:nth-child(2) {
    top: 15px;
  }
  .navbar-toggle span:nth-child(3) {
    top: 21px;
  }
  .navbar-toggle.active span:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
  }
  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggle.active span:nth-child(3) {
    top: 15px;
    transform: rotate(-45deg);
  }
  .cart-btn {
    width: 36px;
    height: 36px;
  }
  .cart-btn .cart-badge {
    min-width: 16px;
    height: 16px;
    font-size: 8px;
    top: -1px;
    right: -1px;
    border-width: 1px;
  }
  .cart-btn .cart-badge.has-many {
    min-width: 18px;
    font-size: 7px;
  }
  .cart-btn .cart-badge.has-many-many {
    min-width: 20px;
    font-size: 6px;
  }
  .cart-btn svg {
    width: 18px;
    height: 18px;
  }
  .login-btn {
    height: 32px;
    font-size: 13px;
    padding-inline: 1rem;
  }
}
@media (max-width: 564px) {
  .navbar-container {
    height: 45px;
  }
  .navbar-menu {
    top: 45px;
  }
  .navbar-brand {
    width: 25%;
  }
}
@media (max-width: 480px) {
  .navbar-brand {
    width: 30%;
  }
}
.search-wrapper {
  position: relative;
  width: 280px;
  z-index: 1000;
}
@media (max-width: 1024px) {
  .search-wrapper {
    width: 100%;
  }
}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  border-radius: 999px;
  background: white;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding-inline: 1rem;
  font-size: 0.875rem;
  background: transparent;
}
.search-form input::-moz-placeholder {
  color: #9ca3af;
}
.search-form input::placeholder {
  color: #9ca3af;
}
.search-form button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-form button svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
}
.search-form:focus-within {
  border-color: #1ea9e2;
  box-shadow: 0 0 0 3px rgba(30, 169, 226, 0.1);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
}
.search-suggestions.active {
  display: block;
  animation: slideDown 0.2s ease;
}
.search-suggestions .suggestions-list {
  padding: 8px 0;
}
.search-suggestions .suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: #1f2937;
  gap: 12px;
}
.search-suggestions .suggestion-item:hover, .search-suggestions .suggestion-item.active {
  background: #f3f4f6;
}
.search-suggestions .suggestion-item .suggestion-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #f3f4f6;
  color: #6b7280;
}
.search-suggestions .suggestion-item .suggestion-icon.ebook {
  background: #dbeafe;
  color: #2563eb;
}
.search-suggestions .suggestion-item .suggestion-icon.author {
  background: #d1fae5;
  color: #059669;
}
.search-suggestions .suggestion-item .suggestion-icon.publisher {
  background: #fef3c7;
  color: #d97706;
}
.search-suggestions .suggestion-item .suggestion-icon.category {
  background: #fce4ec;
  color: #dc2626;
}
.search-suggestions .suggestion-item .suggestion-content {
  flex: 1;
  min-width: 0;
}
.search-suggestions .suggestion-item .suggestion-content .suggestion-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}
.search-suggestions .suggestion-item .suggestion-content .suggestion-text .highlight {
  color: #1ea9e2;
  font-weight: 700;
}
.search-suggestions .suggestion-item .suggestion-content .suggestion-meta {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-suggestions .suggestion-item .suggestion-content .suggestion-meta .badge {
  background: #f3f4f6;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  color: #4b5563;
}
.search-suggestions .suggestion-footer {
  padding: 8px 16px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}
.search-suggestions .suggestion-footer a {
  font-size: 0.75rem;
  color: #1ea9e2;
  text-decoration: none;
  font-weight: 500;
}
.search-suggestions .suggestion-footer a:hover {
  text-decoration: underline;
}
.search-suggestions .suggestion-empty {
  padding: 20px;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}
.search-suggestions .suggestion-empty svg {
  width: 40px;
  height: 40px;
  color: #d1d5db;
  margin-bottom: 8px;
}
.search-suggestions .suggestion-loading {
  padding: 20px;
  text-align: center;
}
.search-suggestions .suggestion-loading .spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #f3f4f6;
  border-top-color: #1ea9e2;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}/*# sourceMappingURL=header.css.map */