    /* General page styles */
    body {
      font-family: sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f4f4f4;
      text-transform: lowercase;
      font-size: 12px;
    }
    header {
      background-color: #ffffff;
      color: rgb(27, 27, 27);
      padding: 10px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-direction: row;
      gap: auto;
      padding-top: 15px;
    }
    header h1 {
      font-family: 'Courier New', Courier, monospace;
      margin: 0;
      padding-left: 20px;
      font-size: 14px;
      text-wrap-mode: nowrap;
    }
    /* Navigation styles */
    nav {
      background-color: #ffffff;
      width: 100%;
      overflow: hidden;
      max-height: 0;
      z-index: 10;
      transition: max-height 0.4s ease-in-out;
    }
    .right-nav {
      display: flex;
      align-items: center;
    }
    nav a {
      color: rgb(0, 0, 0);
      margin: 0 15px;
      text-decoration: none;
      font-weight: bold;
      display: block;
      padding: 10px;
    }
    nav a:hover {
      background-color: #555;
      color: #f0f0f0;
    }
    #nav-toggle {
      background-color: #ffffff;
      color: rgb(0, 0, 0);
      border: none;
      padding: 10px 20px;
      cursor: pointer;
      font-size: 16px;
    }
    .right-nav-home {
        display: none;
        position: absolute;
        min-width: 180px;
    }    
    .right-nav-cart {
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    .right-nav-cart svg {
      pointer-events: none;
      width: 16px;
      height: 16px;
    }

    .cart-counter {
  display: none;
  background: red;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  position: relative;
  top: -10px;
  left: -5px;
}
    #nav-toggle:focus {
      outline: none;
    }

.blinking-caret .caret {
  font-weight: bold;
  color: rgb(181, 181, 181);
  animation: blink 0.7s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
/* Keep and enhance the 480px media query */
@media only screen and (max-width: 480px) {
  header {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  header h1 {
    font-size: 14px;
    margin: 0 0 10px 0;
    width: 100%;
    text-align: left;
    padding-left: 20px;
    padding-top: 10px;
  }

  .right-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    margin-top: 10px;
  }

  /* Left side: Search */
  .search-container {
    order: 1;
    margin: 0;
    margin-right: auto;
  }

  /* Right side group */
  .right-nav-cart,
  #nav-toggle {
    display: flex;
    align-items: center;
  }

  .right-nav-cart {
    order: 2;
    margin-right: 15px;
    padding: 8px;
  }

  #nav-toggle {
    order: 3;
    padding: 8px;
  }

  /* Icon sizing */
  #search-icon svg,
  .right-nav-cart svg {
    width: 15px;
    height: 15px;
  }

  /* Button spacing */
  #search-icon {
    padding: 8px;
    margin: 0;
  }
}

/* Mobile styles for 480px and below */
@media only screen and (max-width: 480px) {
  .right-nav {
    display: flex;
    justify-content: space-between; /* Spreads items to both ends */
    align-items: center;
    width: 100%;
    padding: 0 10px;
  }

  /* Left side: Search */
  .search-container {
    order: 1; /* Places search on the left */
    margin: 0;
    margin-right: auto; /* Pushes everything else to the right */
  }

  /* Right side group */
  .right-nav-cart,
  #nav-toggle {
    display: flex;
    align-items: center;
  }

  .right-nav-cart {
    order: 2;
    margin-right: 15px;
  }

  #nav-toggle {
    order: 3;
  }

  /* Icon sizing */
  #search-icon svg,
  .right-nav-cart svg {
    width: 16px;
    height: 16px;
  }

  /* Button spacing */
  #search-icon,
  .right-nav-cart,
  #nav-toggle {
    padding: 8px;
    margin: 0;
  }
}

/* Additional adjustments for very small screens */
@media only screen and (max-width: 360px) {
  .right-nav {
    padding: 0 5px;
  }

  .right-nav-cart {
    margin-right: 10px;
  }

  #search-icon,
  .right-nav-cart,
  #nav-toggle {
    padding: 6px;
  }
}
/* Suggestion styles - Add to your CSS file */
.search-suggestions {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-height: 350px;
  overflow-y: auto;
  z-index: 1000;
  width: 223px
}
#search-icon button {
  padding-right: 1px;
}
.suggestion-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

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

.suggestion-item:hover, .suggestion-item.active {
  background-color: #f5f5f5;
}

.suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 3px;
}

.suggestion-info {
  display: flex;
  flex-direction: column;
}

.suggestion-title {
  font-weight: bold;
  margin-bottom: 2px;
  font-size: 14px;
}

.suggestion-artist {
  font-size: 12px;
  color: #666;
}

.highlight {
  background-color: #ffffcc;
  font-weight: bold;
}

/* Standard search container styling */
.search-container {
  position: relative;
  display: inline-block;
}

#search-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#search-icon svg {
  pointer-events: none; /* This ensures clicks on the SVG propagate to the button */
  width: 16px;
  height: 16px;
}

#search-wrapper {
  display: none; /* Hidden by default */
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

#search-wrapper.search-appear {
  display: block;
}

#product-search {
  width: auto
}

/* Base styles for search wrapper */
#search-wrapper {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}


@media only screen and (max-width: 480px) {
  .search-container {
    margin-right: 5px;
  }

  #search-wrapper #product-search {
    width: 180px;
  }

  .right-nav {
    flex-wrap: nowrap;
  }

  #search-wrapper {
    position: absolute;
    left: 50%;
  }

  .search-container,
  .right-nav-home,
  .right-nav-cart,
  #nav-toggle {
    margin: 5px;
  }

  /* Make search modal more mobile friendly */
  .search-modal-content {
    width: 90%;
    margin: 20% auto;
  }

  /* Additional fixes for very small screens */
  #search-form {
    width: 100%;
  }

  /* Ensure input doesn't get hidden when focused */
  input[type="search"]:focus,
  #search-input:focus {
    position: relative;
    box-shadow: none;
    transition: none;
  }
}

/* Mobile styles for 480px and below */
@media only screen and (max-width: 480px) {
  .right-nav {
    display: flex;
    justify-content: space-between; /* Spreads items to both ends */
    align-items: center;
    width: 100%;
    padding: 0 10px;
  }

  /* Left side: Search */
  .search-container {
    order: 1; /* Places search on the left */
    margin: 0;
    margin-right: auto; /* Pushes everything else to the right */
  }

  /* Right side group */
  .right-nav-cart,
  #nav-toggle {
    display: flex;
    align-items: center;
  }

  .right-nav-cart {
    order: 2;
    margin-right: 15px;
  }

  #nav-toggle {
    order: 3;
  }

  /* Icon sizing */
  #search-icon svg,
  .right-nav-cart svg {
    width: 20px;
    height: 20px;
  }

  /* Button spacing */
  #search-icon,
  .right-nav-cart,
  #nav-toggle {
    padding: 8px;
    margin: 0;
  }
}

/* Additional adjustments for very small screens */
@media only screen and (max-width: 360px) {
  .right-nav {
    padding: 0 5px;
  }

  .right-nav-cart {
    margin-right: 10px;
  }

  #search-icon,
  .right-nav-cart,
  #nav-toggle {
    padding: 6px;
  }
}
