.headerWrapper {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  background: #0d1117;
  color: #c9d1d9;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  transition: background 0.3s ease;
}

[data-theme='light'] .navbar {
  background: #ffffff;
  color: #24292f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navContainer {
  width: 95%;
  max-width: 1800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: 1.5rem;
}

.logoImage {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb; /* Blue circle from screenshot */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brandText {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

[data-theme='light'] .brandText {
  color: #111111;
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1; /* allow links to push search bar to the right */
}

.navLink {
  color: #c9d1d9;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  position: relative;
}

[data-theme='light'] .navLink {
  color: #57606a;
}

.navLink::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.navLink:hover::after,
.navLink.active::after {
  width: 100%;
}

.navLink:hover {
  color: var(--accent-color);
}

.navLink:active {
  transform: scale(0.96);
}

[data-theme='light'] .navLink:hover {
  color: var(--accent-color);
}

.navLink.active {
  color: var(--accent-color);
}

[data-theme='light'] .navLink.active {
  color: var(--accent-color);
}

.navLinkGroup {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.comingBadge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  white-space: nowrap;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
  line-height: 1.3;
  pointer-events: none;
}

.chevron {
  transition: transform 0.2s ease;
}

.dropdownWrapper:hover .chevron {
  transform: rotate(180deg);
}

.dropdownWrapper {
  position: relative;
  display: inline-block;
}

.dropdownMenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 17, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 240px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  border-radius: 12px;
  overflow: hidden;
  z-index: 2000;
  padding: 0.5rem 0;
  animation: fadeIn 0.25s ease;
  margin-top: 0.5rem;
}

[data-theme='light'] .dropdownMenu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.dropdownWrapper:hover .dropdownMenu {
  display: block;
}

.dropdownItem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme='light'] .dropdownItem {
  color: #333;
}

.dropdownItem:hover {
  background: color-mix(in srgb, var(--accent-color) 10%, transparent);
  color: var(--accent-color);
  padding-left: 1.5rem;
}

.dropdownItem:active {
  background: color-mix(in srgb, var(--accent-color) 20%, transparent);
}

.dropdownIcon {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

[data-theme='light'] .dropdownIcon {
  color: #555;
}

.dropdownItem:hover .dropdownIcon {
  color: var(--accent-color);
}

.dropdownEmpty {
  display: block;
  padding: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  text-align: center;
}

[data-theme='light'] .dropdownEmpty {
  color: #999;
}

.rightSection {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.searchBar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: visible;
  padding: 0.35rem 0.75rem;
  width: 450px;
  transition: all 0.2s ease;
  gap: 0.5rem;
  position: relative;
}

[data-theme='light'] .searchBar {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.searchBar:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  width: 500px;
}

[data-theme='light'] .searchBar:focus-within {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.08);
}

.searchInput {
  background: transparent;
  border: none;
  color: #c9d1d9;
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

[data-theme='light'] .searchInput {
  color: #24292f;
}

.searchInput::placeholder {
  color: #8b949e;
}

[data-theme='light'] .searchInput::placeholder {
  color: #57606a;
}


.searchInput {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.35rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: #fff;
}

[data-theme='light'] .searchInput {
  color: #111;
}

.searchInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme='light'] .searchInput::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.searchBtn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.searchBtn:hover {
  transform: scale(1.05);
}

.searchBtn:active {
  transform: scale(0.9);
}

.actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.themeDropdownWrapper {
  position: relative;
  display: inline-block;
}

.themeDropdownMenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(15, 17, 35, 0.95);
  backdrop-filter: blur(20px);
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-radius: 8px;
  overflow: hidden;
  z-index: 2000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme='light'] .themeDropdownMenu {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.themeOption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

[data-theme='light'] .themeOption {
  color: #333;
}

.themeOption:hover {
  background: color-mix(in srgb, var(--accent-color) 15%, transparent);
  color: var(--accent-color);
}

.themeOption:active {
  background: color-mix(in srgb, var(--accent-color) 25%, transparent);
}

.iconBtn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme='light'] .iconBtn {
  color: #57606a;
}

.iconBtn:hover {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

.iconBtn:active {
  transform: scale(0.9);
}

[data-theme='light'] .iconBtn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mainContent {
  min-height: calc(100vh - 75px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.mobileMenuBtn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobileSearch {
  display: none;
}

@media (max-width: 1024px) {
  .navLinks {
    gap: 1rem;
  }
  .navLink {
    font-size: 0.85rem;
  }
  .searchBar {
    width: 150px;
  }
  .searchBar:focus-within {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .navContainer {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    padding: 0 0.25rem;
  }
  .iconBtn {
    width: 30px !important;
    height: 30px !important;
  }
  .logoImage {
    width: 32px !important;
    height: 32px !important;
  }
  .mobileMenuBtn {
    display: block;
    order: 0;
    padding: 0.25rem;
  }
  .brand {
    order: 1;
    gap: 0.35rem;
  }
  .brandText {
    font-size: 0.85rem;
    letter-spacing: 0px;
  }
  .rightSection {
    order: 2;
    gap: 0.25rem;
  }
  .searchBar {
    display: none;
  }
  .navLinks {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(15, 17, 35, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
  }
  [data-theme='light'] .navLinks {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  .navLinks.mobileOpen {
    display: flex;
  }

  .mobileSearch {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
  }
  [data-theme='light'] .mobileSearch {
    border-color: rgba(0, 0, 0, 0.1);
  }
  .mobileSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.65rem 0.85rem;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
  }
  [data-theme='light'] .mobileSearchInput {
    color: #111;
  }
  .mobileSearchInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }
  [data-theme='light'] .mobileSearchInput::placeholder {
    color: rgba(0, 0, 0, 0.4);
  }
  .mobileSearchBtn {
    background: #ef4444;
    border: none;
    color: #fff;
    padding: 0.65rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .navLink {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  [data-theme='light'] .navLink {
    border-bottom-color: rgba(0,0,0,0.05);
  }
  .navLink:last-child {
    border-bottom: none;
  }
}

/* Sliding Cart Drawer Styles */
.cartOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cartOverlay.open {
  opacity: 1;
  visibility: visible;
}

.cartDrawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: #0d0e1b;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme='light'] .cartDrawer {
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.cartDrawer.open {
  right: 0;
}

.cartHeader {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme='light'] .cartHeader {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cartTitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

[data-theme='light'] .cartTitle {
  color: #111;
}

.cartCloseBtn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.cartCloseBtn:hover {
  color: #fff;
}

.cartCloseBtn:active {
  transform: scale(0.9);
}

[data-theme='light'] .cartCloseBtn:hover {
  color: #111;
}

.cartContent {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cartItem {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 12px;
}

[data-theme='light'] .cartItem {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.08);
}

.cartItemImg {
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

.cartItemInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cartItemName {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme='light'] .cartItemName {
  color: #111;
}

.cartItemPrice {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-color);
}

.cartItemQtyRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.cartItemRemoveBtn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  gap: 0.25rem;
  transition: opacity 0.2s;
}

.cartItemRemoveBtn:hover {
  opacity: 0.8;
}

.cartItemRemoveBtn:active {
  transform: scale(0.9);
}

.cartFooter {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

[data-theme='light'] .cartFooter {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cartTotalRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cartTotalLabel {
  font-weight: 600;
  font-size: 0.95rem;
  color: #94a3b8;
}

.cartTotalPrices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.cartTotalIqd {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.cartTotalUsd {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

[data-theme='light'] .cartTotalUsd {
  color: #111;
}

.cartCheckoutBtn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.2s;
}

.cartCheckoutBtn:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.cartCheckoutBtn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.cartCheckoutBtn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: not-allowed;
}

.cartEmpty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60%;
  color: #94a3b8;
  gap: 1rem;
  font-size: 0.95rem;
}

/* Modern quantity controls in cart drawer */
.cartItemQtyControl {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  height: 28px;
}

[data-theme='light'] .cartItemQtyControl {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.cartItemQtyBtn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 100%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cartItemQtyBtn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.cartItemQtyBtn:active {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme='light'] .cartItemQtyBtn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111;
}

.cartItemQtyVal {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  min-width: 22px;
  text-align: center;
}

[data-theme='light'] .cartItemQtyVal {
  color: #111;
}

/* Modern Toast Notification styling */
.cartToast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-color, #3b82f6);
  color: #fff;
  padding: 0.95rem 1.75rem;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 20000;
  animation: slideUp 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Coming Soon Badge */
.comingSoonBadge {
  position: absolute;
  top: -12px;
  right: -18px;
  font-size: 0.55rem;
  font-weight: 800;
  color: #e11d48;
  background: transparent;
  padding: 2px 6px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(225, 29, 72, 0.4);
  transform: rotate(4deg);
  animation: badgePulse 2s infinite ease-in-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes badgePulse {
  0% {
    transform: rotate(4deg) scale(1);
    text-shadow: 0 2px 4px rgba(225, 29, 72, 0.4);
  }
  50% {
    transform: rotate(4deg) scale(1.05);
    text-shadow: 0 4px 8px rgba(225, 29, 72, 0.8);
  }
  100% {
    transform: rotate(4deg) scale(1);
    text-shadow: 0 2px 4px rgba(225, 29, 72, 0.4);
  }
}
