* {
    margin: 0;
    font-family: arial;
    border: border-box;
}
.navbar{
    height:60px;
    background-color: rgb(34, 6, 82);
    color: rgba(217, 201, 223, 0.577);
    display: flex;
}
.nav-logo{
    height: 50px;
    width: 100px;
}
.logo{
    background-image: url("Q_logo.png");
    background-size: cover;
    height: 50px;
    width: 100%;
}
.border{
    border: 2px solid transparent;
}
.border:hover{
    border: 2px solid white;
}
.nav-search {
    display: flex;
    flex-grow: 1;
    margin: 0 20px;
    max-width: 500px;
}
.search-input {
    flex-grow: 1;
    padding: 8px;
    font-size: 16px;
    border: none;
    outline: none;
}
.search-button {
    padding: 8px 16px;
    background-color: #222;
    color: white;
    border: none;
    cursor: pointer;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-img {
    width: 100%;
    height: 200px;  
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.grid-img:hover {
    transform: scale(1.05);
}
.banner-row {
    display: flex;
    justify-content: space-between;  
    padding: 20px;
    gap: 20px;                        
}

.banner-img {
    width: 49%;                      
    height: 400px;                   
    object-fit: cover;               
    border: 5px solid black;
    border-radius: 10px;
}
.product-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    width: 200px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.product-card:hover {
    transform: scale(1.03);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-grid h2 {
  grid-column: 1 / -1;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.product-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.05);
}

.product-img {
  max-width: 100%;
  height: auto;
}

.add-to-cart {
  margin-top: 20px;
  background-color: #222;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 10px;
}
.nav-login {
  margin-left: auto;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10 px;
}
.login-btn{
    padding: 10px 10px;
    padding-bottom: 8px;
    background-color: rgb(13, 2, 18);
    color: #ddd;
    cursor:pointer;
    font-size:19px;
    transition: background-color 0.3s ease;
}
.login-btn:hover {
  background-color: #222;
}
/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border: 2px solid black;
  width: 300px;
  position: relative;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: black;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  box-sizing: border-box;
}
.nav-search {
    position: relative; /* So suggestions box stays aligned */
}

.suggestions-box {
    background-color: white;
    border: 1px solid #ccc;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.suggestions-box div {
    padding: 8px;
    cursor: pointer;
}

.suggestions-box div:hover {
    background-color: #f0f0f0;
}
