:root {
  --accent: #0b6efd;
  --panel-bg: #ffffff;
  --shadow: 0 8px 28px rgba(11, 110, 253, 0.12);
  --radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* ================= HEADER ================= */
.header-container {
  background: #fff;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  overflow: visible !important;
  z-index: 99999;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

body {
  padding-top: 130px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--accent), #1d2b3a);
  padding-block: 15px;
  padding-inline: 5%;
  height: 130px;
  gap: 40px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  position: relative;
}

/* ================= LOGO (LEFT) ================= */
.logo {
  order: 1;
}

.logo img {
  height: 130px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ================= HAMBURGER (RIGHT - Hidden on desktop) ================= */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 100000;
  order: 4;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ================= NAV LINKS ================= */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 49px;
  margin: 0;
  order: 2;
  margin-left: auto;
}

.nav-links > li > a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

/* ================= DROPDOWN BASE ================= */
.dropdown {
  position: relative;
}

/* ================= MAIN DROPDOWN ================= */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 280px;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 999;
  pointer-events: none;
  margin: 0;
}

.dropdown:hover > .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-content:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ================= SERVICE DROPDOWN LINKS ================= */
.dropdown-column a {
  display: block;
  padding: 14px 20px;
  color: #0052cc !important;
  font-size: 0.95rem;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease;
  border-left: 3px solid transparent;
  margin: 0;
}

.dropdown-column a:hover {
  background: #0b6efd;
  color: #fff !important;
  border-left-color: #003a9c;
  padding-left: 24px;
}

/* ================= MAIN CATEGORY ================= */
.product-item-row {
  position: relative;
  margin: 0;
}

.product-item-row .main-item {
  display: block;
  padding: 14px 20px;
  color: #0052cc;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  background: #fff;
  transition: background 0.25s ease, color 0.25s ease;
  margin: 0;
}

.product-item-row .main-item:hover {
  background: #0b6efd;
  color: #fff;
}

/* ================= MEGA MENU ================= */
.mega-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  max-height: 600px;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 9999;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  width: max-content;
  padding: 0;
  pointer-events: auto;
  margin: 0;
}

.mega-menu:hover,
.product-item-row:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ================= LAPTOP FIX ================= */
.laptop-fix .mega-menu {
  top: 50% !important;
  transform: translate(-10px, -50%) !important;
  max-height: 80vh !important;
  overflow-y: auto;
}

.laptop-fix:hover .mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(0, -50%) !important;
}

/* ================= MEGA COLUMNS ================= */
.mega-column {
  border-right: 1px solid #eee;
  margin: 0;
}

.mega-column:last-child {
  border-right: none;
}

.mega-column h4 {
  padding: 14px 20px;
  background: linear-gradient(180deg, #cad9ef, #f5f7fa);
  color: #0052cc;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid #dce6ff;
  margin: 0;
}

.mega-column a {
  display: block;
  padding: 11px 18px;
  color: #0b6efd !important;
  font-size: 0.95rem;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease;
  border-left: 3px solid transparent;
  margin: 0;
}

.mega-column a:hover {
  background: #0b6efd;
  color: #fff !important;
  border-left-color: #003a9c;
  padding-left: 22px;
}

/* ================= BOTTOM FIX ================= */
.bottom-fix .mega-menu {
  top: auto;
  bottom: 0;
  transform: translateY(10px);
}

.bottom-fix:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ================= SEARCH BAR ================= */
.search-bar {
  order: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.search-bar form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 25px;
  padding: 8px 20px;
  min-width: 280px;
  max-width: 350px;
  height: 45px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  gap: 10px;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95em;
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  color: #333;
  height: auto;
  margin: 0;
}

.search-bar input:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.search-bar input::placeholder {
  color: #999;
}

.search-bar button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  height: 100%;
  transition: all 0.3s ease;
}

.search-bar .search-icon {
  width: 22px;
  height: 22px;
  color: #0052cc;
  flex-shrink: 0;
}

/* ================= ICON ================= */
.feather-icon {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  vertical-align: middle;
}

.dropbtn .feather-icon {
  transition: transform 0.25s ease;
}

.dropdown:hover .dropbtn .feather-icon {
  transform: rotate(180deg);
}

/* ================= DESKTOP MEGA MENU WRAPPER ================= */
.desktop-mega-menu {
  display: block;
}



/* Ensure dropdowns work on all desktop sizes (1024px+) */
@media (min-width: 1024px) {
  .dropdown:hover > .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  /* For "Service" dropdown - always show simple dropdown on desktop */
  .dropdown:first-child .dropdown-content > .dropdown-column {
    display: block !important;
  }
}

/* 1024px specific adjustments */
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav {
    gap: 10px;
    padding-inline: 2%;
    height: 110px;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .nav-links > li > a {
    font-size: 0.85rem;
    padding: 8px 4px;
  }
  
  .search-bar form {
    min-width: 140px !important;
    max-width: 150px !important;
    height: 34px !important;
    padding: 5px 10px !important;
    gap: 5px !important;
    border-radius: 20px !important;
  }
  
  .search-bar input {
    font-size: 0.78em !important;
    padding: 3px 4px !important;
  }
  
  .search-bar input::placeholder {
    font-size: 0.9em;
  }
  
  .search-bar .search-icon {
    width: 15px !important;
    height: 15px !important;
  }
  
  .logo img {
    height: 100px;
  }
  
  .feather-icon {
    width: 14px;
    height: 14px;
  }
}

/* Large screens (1440px - 1920px) */
@media (min-width: 1440px) and (max-width: 1920px) {
  .main-nav {
    padding-inline: 6%;
    gap: 50px;
  }
  
  .nav-links {
    gap: 55px;
  }
  
  .nav-links > li > a {
    font-size: 1rem;
  }
  
  .search-bar form {
    min-width: 300px;
    max-width: 360px;
    height: 46px;
    padding: 8px 22px;
    gap: 12px;
  }
  
  .search-bar input {
    font-size: 0.98em;
  }
  
  .search-bar .search-icon {
    width: 22px;
    height: 22px;
  }
  
  .logo img {
    height: 135px;
  }
}

/* Extra large screens (2K and above - 2560px+) */
@media (min-width: 1921px) {
  .main-nav {
    padding-inline: 8%;
    gap: 60px;
  }
  
  .nav-links {
    gap: 65px;
  }
  
  .nav-links > li > a {
    font-size: 1.08rem;
    padding: 12px 10px;
  }
  
  .search-bar form {
    min-width: 380px;
    max-width: 450px;
    height: 52px;
    padding: 10px 26px;
    gap: 14px;
  }
  
  .search-bar input {
    font-size: 1.05em;
    padding: 8px 10px;
  }
  
  .search-bar .search-icon {
    width: 26px;
    height: 26px;
  }
  
  .logo img {
    height: 145px;
  }
}


/* =========================================
   REMOVE DUPLICATE SIMPLE LIST
   ONLY AT DESKTOP 1024–1279px
   ========================================= */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Hide ONLY the simple category list */
  .dropdown:nth-child(2)
  > .dropdown-content
  > .dropdown-column {
    display: none !important;
  }

  /* Ensure mega menu stays visible */
  .dropdown:nth-child(2)
  > .dropdown-content
  > .desktop-mega-menu {
    display: block !important;
  }

  /* Dropdown container */
  .dropdown-content {
    min-width: 200px;
  }

  /* Simple dropdown (Service etc.) */
  .dropdown-column a {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  /* Main category rows (CPU, SSD, Laptop…) */
  .product-item-row .main-item {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  /* Mega menu wrapper */
  .mega-menu {
    max-width: calc(100vw - 140px);
    max-height: 65vh;
  }

  /* Mega columns */
  .mega-column {
    min-width: 160px;
  }

  /* Mega menu headings */
  .mega-column h4 {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  /* Mega menu links */
  .mega-column a {
    font-size: 0.78rem;
    padding: 6px 10px;
  }
}



/* =========================================
   MEGA MENU SIZE REDUCTION FOR 1024px
   (NO STRUCTURE CHANGE)
   ========================================= */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Reduce overall mega menu footprint */
  .dropdown:nth-child(2) .mega-menu {
    max-width: calc(100vw - 80px); /* stay inside screen */
    width: auto;
  }

  /* Reduce column width */
  .dropdown:nth-child(2) .mega-column {
    min-width: 200px;
  }

  /* Reduce heading size & padding */
  .dropdown:nth-child(2) .mega-column h4 {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  /* Reduce link size & padding */
  .dropdown:nth-child(2) .mega-column a {
    font-size: 0.85rem;
    padding: 9px 14px;
  }
}



/* =========================================
   MOBILE & TABLET ONLY (<1024px)
========================================= */
@media (max-width: 1023px) {

  body {
    padding-top: 80px;
  }

  .main-nav {
    height: 80px;
    padding-block: 12px;
    padding-inline: 4%;
    gap: 20px;
  }

  .logo {
    order: 1;
  }

  .logo img {
    height: 60px;
  }

  /* Show hamburger on RIGHT */
  .hamburger {
    display: flex;
  }

  /* HIDE search bar on mobile/tablet (below 1024px) */

  /* Hide nav by default */
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: linear-gradient(180deg, var(--accent), #1d2b3a);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    z-index: 99998;
    order: 5;
  }

  /* Open menu */
  .nav-toggle:checked ~ .nav-links {
    transform: translateX(0);
  }

  /* Animate hamburger */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Nav items */
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links > li > a,
  .nav-links > li > .dropbtn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 0;
  }

  /* DISABLE DESKTOP HOVER */
  .dropdown:hover .dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }

  /* Mobile dropdown - hidden by default */
  .dropdown-content {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    background: transparent;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    padding-left: 20px;
    margin-top: 0;
  }

  /* Show dropdown when .open class is added */
  .dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    max-height: 3000px;
  }

  /* Dropdown links styling for mobile */
  .dropdown-content .dropdown-column a {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 0;
    font-size: 0.95rem;
    border-left: none;
  }

  .dropdown-content .dropdown-column a:hover {
    background: transparent;
    color: #fff !important;
    padding-left: 0;
    text-decoration: underline;
  }

  /* Rotate icon when dropdown is open */
  .dropdown.open .feather-icon {
    transform: rotate(180deg);
  }

  /* ================= MOBILE NESTED DROPDOWNS ================= */
  
  /* Show desktop mega menu structure on mobile */
  .desktop-mega-menu {
    display: block !important;
  }


  /* ================= FIX DUPLICATE ALL PRODUCTS (DESKTOP DEFAULT) ================= */

/* Hide simple category list on ALL desktop sizes */
@media (min-width: 1024px) {
  .dropdown:nth-child(2)
  > .dropdown-content
  > .dropdown-column {
    display: none !important;
  }

  /* Ensure mega menu is always visible on desktop */
  .dropdown:nth-child(2)
  > .dropdown-content
  > .desktop-mega-menu {
    display: block !important;
  }
  
}


  /* Hide simple category links on mobile for All Products */
  .dropdown:nth-child(2) .dropdown-content > .dropdown-column {
    display: none !important;
  }

  /* Product item row styling for mobile */
  .product-item-row {
    display: block !important;
    position: relative;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .product-item-row .main-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    cursor: pointer;
    border-bottom: none;
    background: transparent;
    font-size: 0.95rem;
    transition: color 0.25s ease;
  }

  .product-item-row .main-item:hover {
    background: transparent;
    color: #fff;
  }

  /* Add chevron icon to product items */
  .product-item-row .main-item::after {
    content: '›';
    font-size: 1.4rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
  }

  .product-item-row.open .main-item::after {
    transform: rotate(90deg);
  }

  /* Mobile mega menu styling */
  .mega-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    background: transparent;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    display: block;
    width: 100%;
    padding-left: 15px;
    margin-top: 0;
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  /* Show mega menu when parent is open */
  .product-item-row.open .mega-menu {
    opacity: 1;
    visibility: visible;
    max-height: 2000px;
  }

  /* Disable hover effects */
  .product-item-row:hover .mega-menu,
  .mega-menu:hover {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
  }

  .product-item-row.open:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    max-height: 2000px;
  }

  /* Mega column styling for mobile */
  .mega-column {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
    padding: 0;
  }

  .mega-column:last-child {
    border-bottom: none;
  }

  .mega-column h4 {
    padding: 10px 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: none;
    margin-top: 8px;
  }

  .mega-column a {
    display: block;
    padding: 10px 0 10px 15px;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.85rem;
    font-weight: 500 !important;
    text-decoration: none;
    transition: color 0.25s ease;
    border-left: none;
  }

  .mega-column a:hover {
    background: transparent;
    color: #fff !important;
    border-left-color: transparent;
    padding-left: 15px;
    text-decoration: underline;
  }

  /* Remove laptop and bottom fix transforms on mobile */
  .laptop-fix .mega-menu,
  .bottom-fix .mega-menu {
    top: auto;
    bottom: auto;
    transform: none;
    max-height: 0;
  }

  .laptop-fix.open .mega-menu,
  .bottom-fix.open .mega-menu {
    opacity: 1;
    visibility: visible;
    max-height: 2000px;
    transform: none;
  }
}

@media (max-width: 768px) {
  
  .logo img {
    height: 50px;
  }

  .nav-links {
    padding: 20px;
  }

  .dropdown-content .dropdown-column a {
    font-size: 0.9rem;
  }

  .product-item-row .main-item {
    font-size: 0.9rem;
    padding: 11px 0;
  }

  .mega-column h4 {
    font-size: 0.85rem;
  }

  .mega-column a {
    font-size: 0.8rem;
    padding: 9px 0 9px 12px;
  }
}

@media (max-width: 480px) {
  
  .logo img {
    height: 45px;
  }

  .nav-links {
    padding: 16px;
  }

  .nav-links > li > a,
  .nav-links > li > .dropbtn {
    font-size: 1rem;
    padding: 14px 0;
  }

  .dropdown-content .dropdown-column a {
    font-size: 0.85rem;
    padding: 10px 0;
  }

  .product-item-row .main-item {
    font-size: 0.85rem;
    padding: 10px 0;
  }

  .mega-column h4 {
    font-size: 0.8rem;
    padding: 8px 0;
  }

  .mega-column a {
    font-size: 0.75rem;
    padding: 8px 0 8px 10px;
  }
}


/* =====================================================
   HARD DESKTOP OVERRIDE – REMOVE DUPLICATE ALL PRODUCTS
   ===================================================== */

/* Desktop only (1024px and above) */
@media (min-width: 1024px) {

  /* KILL the simple list completely */
  .nav-links
  > .dropdown:nth-child(2)
  > .dropdown-content
  > .dropdown-column {
    display: none !important;
  }

  /* FORCE mega menu container only */
  .nav-links
  > .dropdown:nth-child(2)
  > .dropdown-content
  > .desktop-mega-menu {
    display: block !important;
  }
}


/* =====================================================
   1024px ONLY — RESET MOBILE MEGA MENU STYLES
   ===================================================== */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Restore desktop mega menu behavior */
  .mega-menu {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;

    opacity: 0;
    visibility: hidden;
    max-height: none !important;

    background: #fff !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22) !important;

    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Show on hover */
  .product-item-row:hover > .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }

  /* Compact size (your requirement) */
  .mega-menu {
    max-width: 680px !important;
    max-height: 60vh !important;
    overflow-y: auto;
  }

  /* Smaller columns */
  .mega-column {
    min-width: 160px !important;
  }

  .mega-column h4 {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .mega-column a {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}


/* =====================================================
   1024px ONLY — MAKE ALL MEGA MENUS BEHAVE THE SAME
   (REMOVE SCROLLING FOR bottom-fix ITEMS)
   ===================================================== */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Disable bottom-fix positioning at 1024px */
  .product-item-row.bottom-fix .mega-menu {
    top: 0 !important;
    bottom: auto !important;
    transform: translateX(-10px) !important;
  }

  /* Remove height restriction for these mega menus */
  .product-item-row.bottom-fix .mega-menu {
    max-height: none !important;
    overflow-y: visible !important;
  }

  /* Keep SAME grid behavior as other mega menus */
  .product-item-row.bottom-fix .mega-menu {
    display: grid !important;
    grid-auto-flow: column !important;
    width: max-content !important;
  }

  /* Ensure hover still works */
  .product-item-row.bottom-fix:hover .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }
}


/* ================= FIX GAP AFTER LAPTOP (MOBILE ONLY) ================= */
@media (max-width: 1023px) {

  /* Remove extra space created by laptop-fix on mobile */
  .product-item-row.laptop-fix {
    margin-bottom: 0 !important;
  }

  .product-item-row.laptop-fix .mega-menu {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}



/* ===== REMOVE EMPTY SPACE AFTER LAPTOP (MOBILE ONLY) ===== */
@media (max-width: 1023px) {

  /* When a product row is NOT open, it must take ZERO space */
  .product-item-row:not(.open) .mega-menu {
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}



/* ================= FIX LAPTOP NESTING (MOBILE ONLY) ================= */
@media (max-width: 1023px) {

  /* 🔒 Disable ALL hover behavior on mobile */
  .product-item-row:hover .mega-menu,
  .laptop-fix:hover .mega-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
  }

  /* ✅ Laptop submenu opens ONLY when clicked (.open) */
  .product-item-row.open .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 2000px !important;
  }

  /* 🧹 Remove desktop centering logic for laptop */
  .laptop-fix .mega-menu {
    position: static !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    padding-left: 15px !important;
    margin-top: 0 !important;
  }

  /* 📐 Make Laptop submenu look like others */
  .laptop-fix .mega-column {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .laptop-fix .mega-column h4 {
    margin-top: 10px;
  }
}




/* ================= FORCE MOBILE CLICK-ONLY ACCORDION ================= */
@media (max-width: 1023px) {

  /* 1️⃣ Kill ALL hover-based mega menu opening on mobile */
  .product-item-row:hover > .mega-menu,
  .laptop-fix:hover > .mega-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
  }

  /* 2️⃣ Mega menu must open ONLY when .open is added (click) */
  .product-item-row.open > .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 3000px !important;
  }

  /* 3️⃣ Force mobile layout (NO grid, NO columns) */
  .mega-menu {
    display: block !important;
    grid-auto-flow: unset !important;
    grid-auto-columns: unset !important;
    width: 100% !important;
  }

  /* 4️⃣ Laptop-specific desktop logic MUST DIE on mobile */
  .laptop-fix .mega-menu {
    position: static !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
  }

  /* 5️⃣ Prevent overlapping text */
  .mega-column {
    width: 100% !important;
    min-width: 100% !important;
    border: none !important;
  }

  .mega-column h4,
  .mega-column a {
    white-space: normal !important;
    line-height: 1.4 !important;
  }
}





/* ===== LAPTOP: CLICK-ONLY NESTED DROPDOWN (MOBILE/TABLET) ===== */
@media (max-width: 1023px) {

  /* 1️⃣ Completely disable hover ONLY for Laptop */
  .product-item-row.laptop-fix:hover > .mega-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
  }

  /* 2️⃣ Show Laptop submenu ONLY when clicked (.open added by JS) */
  .product-item-row.laptop-fix.open > .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 2000px !important;
  }

  /* 3️⃣ Force Laptop submenu to appear BELOW the Laptop item */
  .product-item-row.laptop-fix > .mega-menu {
    position: static !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    margin-top: 6px !important;
  }
}







/* =====================================================
   1024px – FORCE SMALL MEGA MENU (STAY INSIDE SCREEN)
   ===================================================== */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Absolute hard limit so it NEVER crosses viewport */
  .dropdown:nth-child(2) .mega-menu {
    max-width: 520px !important;        /* VERY compact */
    width: 520px !important;
    max-height: 55vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Narrow columns */
  .dropdown:nth-child(2) .mega-column {
    min-width: 140px !important;
  }

  /* Smaller headings */
  .dropdown:nth-child(2) .mega-column h4 {
    font-size: 0.75rem !important;
    padding: 5px 8px !important;
  }

  /* Smaller links */
  .dropdown:nth-child(2) .mega-column a {
    font-size: 0.72rem !important;
    padding: 5px 8px !important;
    line-height: 1.25 !important;
  }

  /* Left category list (CPU, SSD, Laptop…) */
  .dropdown:nth-child(2) .dropdown-content {
    min-width: 180px !important;
  }

  .dropdown:nth-child(2) .product-item-row .main-item {
    font-size: 0.78rem !important;
    padding: 7px 10px !important;
  }
}



/* =========================================
   1024px – ULTRA SMALL MEGA MENU WIDTH
   ========================================= */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* ABSOLUTE width lock */
  .dropdown:nth-child(2) .mega-menu {
    width: 320px !important;        /* 🔽 very small */
    max-width: 320px !important;
    overflow-x: hidden !important;
  }

  /* Compress columns to fit */
  .dropdown:nth-child(2) .mega-column {
    min-width: 105px !important;
  }
}
/* ================= SEARCH SUGGESTIONS DROPDOWN ================= */

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(11, 110, 253, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  animation: searchSlideDown 0.3s ease;
}

.search-suggestions.active {
  display: block;
}

@keyframes searchSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SUGGESTIONS HEADER ================= */
.search-suggestions-header {
  padding: 10px 16px;
  background: linear-gradient(180deg, #f8f9fa, #f5f6f7);
  border-bottom: 1px solid #e0e0e0;
  font-size: 11px;
  color: #666;
  font-weight: 700;
  position: sticky;
  top: 0;
  letter-spacing: 0.5px;
}

/* ================= SUGGESTION ITEMS ================= */
.suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #f9f9f9;
}

.suggestion-item.selected {
  background-color: #fff3e0;
  border-left: 3px solid #FF6B35;
}

/* ================= SUGGESTION ICON ================= */
.suggestion-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
}

.suggestion-icon.category {
  background-color: rgba(255, 107, 53, 0.12);
  color: #FF6B35;
}

.suggestion-icon.subcategory {
  background-color: rgba(11, 110, 253, 0.12);
  color: #0b6efd;
}

.suggestion-icon.series {
  background-color: rgba(255, 180, 0, 0.12);
  color: #FFB400;
}

/* ================= SUGGESTION CONTENT ================= */
.suggestion-content {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.suggestion-breadcrumb {
  font-size: 12px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================= SUGGESTION BADGE ================= */
.suggestion-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-category {
  background-color: #E8D5F2;
  color: #6A4C93;
}

.badge-subcategory {
  background-color: #D5E8F7;
  color: #004E89;
}

.badge-series {
  background-color: #FFF4D5;
  color: #D97706;
}

/* ================= NO RESULTS ================= */
.search-no-results {
  padding: 24px 16px;
  text-align: center;
  color: #666;
}

.search-no-results p {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.search-no-results small {
  font-size: 12px;
  color: #999;
}

/* ================= KEYBOARD HINTS ================= */
.search-keyboard-hints {
  display: none;
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  text-align: center;
  padding: 0 4px;
}

.search-keyboard-hints.active {
  display: block;
}

.search-keyboard-hints span {
  margin: 0 8px;
  font-weight: 500;
}

/* ================= SCROLLBAR STYLING ================= */
.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
  background: #999;
}


/* ===================================
   DESKTOP - Large Screens (1440px+)
   =================================== */
@media (min-width: 1440px) {
  .search-suggestions {
    max-height: 450px;
  }

  .suggestion-item {
    padding: 14px 18px;
  }

  .suggestion-title {
    font-size: 15px;
  }

  .suggestion-breadcrumb {
    font-size: 13px;
  }

  .suggestion-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}


/* ===================================
   TABLET - Medium Screens (1024px - 1279px)
   =================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .search-suggestions {
    max-height: 350px;
    min-width: 280px;
  }

  .search-suggestions-header {
    font-size: 10px;
    padding: 8px 12px;
  }

  .suggestion-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .suggestion-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .suggestion-title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .suggestion-breadcrumb {
    font-size: 11px;
  }

  .suggestion-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .search-keyboard-hints {
    font-size: 10px;
  }

  .search-keyboard-hints span {
    margin: 0 6px;
  }
}


/* ===================================
   TABLET - Small (768px - 1023px)
   =================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .search-suggestions {
    max-height: 320px;
    min-width: 260px;
  }

  .search-suggestions-header {
    font-size: 10px;
    padding: 8px 12px;
  }

  .suggestion-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .suggestion-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .suggestion-title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .suggestion-breadcrumb {
    font-size: 11px;
  }

  .suggestion-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .search-keyboard-hints {
    display: none !important;
  }
}


/* ===================================
   MOBILE - Small (480px - 767px)
   =================================== */
@media (min-width: 480px) and (max-width: 767px) {
  .search-suggestions {
    max-height: 300px;
    min-width: 240px;
  }

  .search-suggestions-header {
    font-size: 10px;
    padding: 8px 12px;
  }

  .suggestion-item {
    padding: 9px 12px;
    gap: 10px;
  }

  .suggestion-icon {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .suggestion-title {
    font-size: 12px;
    margin-bottom: 1px;
  }

  .suggestion-breadcrumb {
    font-size: 10px;
  }

  .suggestion-badge {
    font-size: 8px;
    padding: 2px 5px;
  }

  .search-keyboard-hints {
    display: none !important;
  }
}


/* ===================================
   MOBILE - Extra Small (< 480px)
   =================================== */
@media (max-width: 479px) {
  .search-suggestions {
    max-height: 280px;
    min-width: 220px;
  }

  .search-suggestions-header {
    font-size: 9px;
    padding: 7px 10px;
  }

  .suggestion-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .suggestion-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .suggestion-title {
    font-size: 12px;
    margin-bottom: 1px;
  }

  .suggestion-breadcrumb {
    font-size: 10px;
  }

  .suggestion-badge {
    font-size: 8px;
    padding: 2px 4px;
  }

  .search-keyboard-hints {
    display: none !important;
  }
}


/* ===================================
   MOBILE HIDE - Below 1024px
   =================================== */
@media (max-width: 1023px) {
  /* Hide keyboard hints on mobile */
  .search-keyboard-hints {
    display: none !important;
  }

  /* Adjust suggestion dropdown for mobile */
  .search-suggestions {
    position: fixed;
    top: auto;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    max-width: 400px;
  }

  .suggestion-item {
    transition: all 0.15s ease;
  }

  .suggestion-item:active {
    background-color: #f0f0f0;
  }
}


/* ===================================
   HIGH DPI / RETINA DISPLAY
   =================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .search-suggestions {
    border-width: 0.5px;
  }

  .suggestion-item {
    border-bottom-width: 0.5px;
  }
}

/* ================= SEARCH BAR - DESKTOP (1024px+) ================= */

.search-bar {
  order: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.search-bar form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 25px;
  padding: 8px 20px;
  min-width: 280px;
  max-width: 350px;
  height: 45px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  gap: 10px;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95em;
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  color: #333;
  height: auto;
  margin: 0;
}

.search-bar input:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.search-bar input::placeholder {
  color: #999;
}

.search-bar button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  height: 100%;
}

.search-bar .search-icon {
  width: 22px;
  height: 22px;
  color: #0052cc;
  flex-shrink: 0;
}


/* ===================================
   LARGE SCREENS (1440px - 1920px)
   =================================== */
@media (min-width: 1440px) and (max-width: 1920px) {
  .search-bar form {
    min-width: 300px;
    max-width: 360px;
    height: 46px;
    padding: 8px 22px;
    gap: 12px;
  }

  .search-bar input {
    font-size: 0.98em;
  }

  .search-bar .search-icon {
    width: 22px;
    height: 22px;
  }
}


/* ===================================
   EXTRA LARGE SCREENS (2K+ 2560px)
   =================================== */
@media (min-width: 1921px) {
  .search-bar form {
    min-width: 380px;
    max-width: 450px;
    height: 52px;
    padding: 10px 26px;
    gap: 14px;
  }

  .search-bar input {
    font-size: 1.05em;
    padding: 8px 10px;
  }

  .search-bar .search-icon {
    width: 26px;
    height: 26px;
  }
}


/* ===================================
   TABLET - 1024px - 1279px
   =================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .search-bar {
    order: 3;
    display: flex;
  }

  .search-bar form {
    min-width: 140px !important;
    max-width: 150px !important;
    height: 34px !important;
    padding: 5px 10px !important;
    gap: 5px !important;
    border-radius: 20px !important;
  }

  .search-bar input {
    font-size: 0.78em !important;
    padding: 3px 4px !important;
  }

  .search-bar input::placeholder {
    font-size: 0.9em;
  }

  .search-bar .search-icon {
    width: 15px !important;
    height: 15px !important;
  }
}


/* ===============================================
   MOBILE & TABLET (<1024px) - SEARCH AS ICON BUTTON
   =============================================== */
@media (max-width: 1023px) {
  .search-bar {
    order: 3;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;   /* 🔥 THIS is the key */
    margin-right: 4px;
    position: relative;
    z-index: 99997;
  }

  .search-bar form {
    display: none;
  }

  /* Search Icon Button */
  .search-bar button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .search-bar button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .search-bar button:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0.95);
  }

  .search-bar .search-icon {
    width: 20px;
    height: 20px;
    color: #ffffff;
  }

  /* Mobile Search Modal - Overlay */
.search-bar::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99996;
  pointer-events: none;
}

.search-bar.active::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

  /* Search Input Container - Modal Style */
.search-bar form {
  display: none;
  position: fixed;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 32px);
  max-width: 500px;
  height: 50px;
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 40px rgba(11, 110, 253, 0.25);
  z-index: 99997;
  gap: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  animation: searchModalSlideIn 0.3s ease;
  border: none;
}

.search-bar.active form {
  display: flex !important;
}

  .search-bar input {
  display: block;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1em;
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  color: #333;
  height: 100%;
  margin: 0;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: #999;
}

.search-bar button {
  position: static;
  background: none;
  border: none;
  width: auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.search-bar button:active {
  transform: scale(0.9);
}

.search-bar .search-icon {
  width: 20px;
  height: 20px;
  color: #0052cc;
  flex-shrink: 0;
}
}

@keyframes searchModalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


/* ===================================
   TABLET - SMALL (768px - 1023px)
   =================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .search-bar button {
    width: 40px;
    height: 40px;
  }

  .search-bar .search-icon {
    width: 20px;
    height: 20px;
  }

  .search-bar.active form {
    width: calc(100vw - 28px);
    max-width: 480px;
    height: 48px;
  }
}


/* ===================================
   MOBILE - MEDIUM (480px - 767px)
   =================================== */
@media (min-width: 480px) and (max-width: 767px) {
  .search-bar button {
    width: 38px;
    height: 38px;
  }

  .search-bar .search-icon {
    width: 18px;
    height: 18px;
  }

  .search-bar.active form {
    width: calc(100vw - 24px);
    max-width: 420px;
    height: 46px;
    padding: 7px 16px;
  }

  .search-bar.active input {
    font-size: 0.95em;
  }
}


/* ===================================
   MOBILE - SMALL (< 480px)
   =================================== */
@media (max-width: 479px) {
  .search-bar button {
    width: 36px;
    height: 36px;
  }

  .search-bar .search-icon {
    width: 16px;
    height: 16px;
  }

  .search-bar.active form {
    width: calc(100vw - 20px);
    max-width: 100%;
    height: 42px;
    padding: 6px 14px;
  }

  .search-bar.active input {
    font-size: 0.9em;
  }
}


/* ================= SEARCH SUGGESTIONS DROPDOWN ================= */

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(11, 110, 253, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  animation: searchSlideDown 0.3s ease;
  margin-top: 0;
}

.search-suggestions.active {
  display: block;
}

@keyframes searchSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================= SUGGESTIONS HEADER ================= */
.search-suggestions-header {
  padding: 10px 16px;
  background: linear-gradient(180deg, #f8f9fa, #f5f6f7);
  border-bottom: 1px solid #e0e0e0;
  font-size: 11px;
  color: #666;
  font-weight: 700;
  position: sticky;
  top: 0;
  letter-spacing: 0.5px;
}


/* ================= SUGGESTION ITEMS ================= */
.suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #f9f9f9;
}

.suggestion-item.selected {
  background-color: #fff3e0;
  border-left: 3px solid #FF6B35;
}

.suggestion-item:active {
  background-color: #f0f0f0;
}


/* ================= SUGGESTION ICON ================= */
.suggestion-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
}

.suggestion-icon.category {
  background-color: rgba(255, 107, 53, 0.12);
  color: #FF6B35;
}

.suggestion-icon.subcategory {
  background-color: rgba(11, 110, 253, 0.12);
  color: #0b6efd;
}

.suggestion-icon.series {
  background-color: rgba(255, 180, 0, 0.12);
  color: #FFB400;
}


/* ================= SUGGESTION CONTENT ================= */
.suggestion-content {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.suggestion-breadcrumb {
  font-size: 12px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ================= SUGGESTION BADGE ================= */
.suggestion-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-category {
  background-color: #E8D5F2;
  color: #6A4C93;
}

.badge-subcategory {
  background-color: #D5E8F7;
  color: #004E89;
}

.badge-series {
  background-color: #FFF4D5;
  color: #D97706;
}


/* ================= NO RESULTS ================= */
.search-no-results {
  padding: 24px 16px;
  text-align: center;
  color: #666;
}

.search-no-results p {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.search-no-results small {
  font-size: 12px;
  color: #999;
}


/* ================= KEYBOARD HINTS ================= */
.search-keyboard-hints {
  display: none;
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  text-align: center;
  padding: 0 4px;
}

.search-keyboard-hints.active {
  display: block;
}

.search-keyboard-hints span {
  margin: 0 8px;
  font-weight: 500;
}


/* ================= SCROLLBAR STYLING ================= */
.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
  background: #999;
}


/* ===================================
   DESKTOP - LARGE SCREENS (1440px+)
   SUGGESTIONS POSITIONING
   =================================== */
@media (min-width: 1440px) {
  .search-suggestions {
    max-height: 450px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
  }

  .suggestion-item {
    padding: 14px 18px;
  }

  .suggestion-title {
    font-size: 15px;
  }

  .suggestion-breadcrumb {
    font-size: 13px;
  }

  .suggestion-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}


/* ===================================
   TABLET - MEDIUM (1024px - 1279px)
   SUGGESTIONS POSITIONING
   =================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .search-suggestions {
    max-height: 350px;
    min-width: 280px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
  }

  .search-suggestions-header {
    font-size: 10px;
    padding: 8px 12px;
  }

  .suggestion-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .suggestion-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .suggestion-title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .suggestion-breadcrumb {
    font-size: 11px;
  }

  .suggestion-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .search-keyboard-hints {
    font-size: 10px;
  }

  .search-keyboard-hints span {
    margin: 0 6px;
  }
}


/* ===================================
   MOBILE & TABLET (<1024px)
   SUGGESTIONS MODAL POSITIONING
   =================================== */
@media (max-width: 1023px) {
  .search-suggestions {
    position: fixed;
    top: 145px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    max-width: 500px;
    max-height: calc(100vh - 200px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(11, 110, 253, 0.2);
    z-index: 99997;
    display: none;
    margin-top: 0;
    margin-top: 8px;
  }

  .search-bar.active ~ .search-suggestions,
  .search-bar.active .search-suggestions {
    display: block;
  }

  .search-suggestions-header {
    font-size: 11px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f8f9fa, #f5f6f7);
  }

  .suggestion-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .suggestion-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .suggestion-title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .suggestion-breadcrumb {
    font-size: 11px;
  }

  .suggestion-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .search-keyboard-hints {
    display: none !important;
  }
}


/* ===================================
   TABLET - SMALL (768px - 1023px)
   =================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .search-suggestions {
    max-height: 50vh;
    width: calc(100vw - 28px);
    max-width: 480px;
  }

  .search-suggestions-header {
    padding: 10px 12px;
    font-size: 10px;
  }

  .suggestion-item {
    padding: 11px 12px;
    gap: 11px;
  }

  .suggestion-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .suggestion-title {
    font-size: 13px;
  }

  .suggestion-breadcrumb {
    font-size: 10px;
  }
}


/* ===================================
   MOBILE - MEDIUM (480px - 767px)
   =================================== */
@media (min-width: 480px) and (max-width: 767px) {
  .search-suggestions {
    max-height: 55vh;
    width: calc(100vw - 24px);
    max-width: 420px;
  }

  .search-suggestions-header {
    padding: 10px 12px;
    font-size: 10px;
  }

  .suggestion-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .suggestion-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .suggestion-title {
    font-size: 12px;
    margin-bottom: 1px;
  }

  .suggestion-breadcrumb {
    font-size: 10px;
  }

  .suggestion-badge {
    font-size: 8px;
    padding: 2px 5px;
  }
}


/* ===================================
   MOBILE - SMALL (< 480px)
   =================================== */
@media (max-width: 479px) {
  .search-suggestions {
    max-height: 55vh;
    width: calc(100vw - 20px);
    max-width: 100%;
  }

  .search-suggestions-header {
    padding: 10px 12px;
    font-size: 10px;
  }

  .suggestion-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .suggestion-icon {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .suggestion-title {
    font-size: 12px;
    margin-bottom: 1px;
  }

  .suggestion-breadcrumb {
    font-size: 10px;
  }

  .suggestion-badge {
    font-size: 8px;
    padding: 2px 4px;
  }
}


/* ===================================
   HIGH DPI / RETINA DISPLAY
   =================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .search-suggestions {
    border-width: 0.5px;
  }

  .suggestion-item {
    border-bottom-width: 0.5px;
  }
}


/* ===================================
   ACCESSIBILITY - FOCUS STATES
   =================================== */
.search-bar button:focus {
  outline: 2px solid #0b6efd;
  outline-offset: 2px;
}

.search-bar.active input:focus {
  outline: none;
}

.suggestion-item:focus {
  outline: 2px solid #0b6efd;
  outline-offset: -2px;
}
/* ================= SEARCH TOGGLE BUTTON VISIBILITY ================= */

/* Hide search toggle button on desktop (1024px+) */
@media (min-width: 1024px) {
  .search-toggle {
    display: none !important;
  }
}

/* Show search toggle button on mobile/tablet (<1024px) */
@media (max-width: 1023px) {
  .search-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .search-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .search-toggle:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0.95);
  }

  .search-toggle .search-icon {
    width: 20px;
    height: 20px;
    color: #ffffff;
  }
  
}

/* Fine-tune for specific mobile sizes */
@media (min-width: 768px) and (max-width: 1023px) {
  .search-toggle {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .search-toggle {
    width: 38px;
    height: 38px;
  }

  .search-toggle .search-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 479px) {
  .search-toggle {
    width: 36px;
    height: 36px;
  }

  .search-toggle .search-icon {
    width: 16px;
    height: 16px;
  }
}