body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  background-color: #0a0a0a;
}

.astro-search-bar{
	width: 700px; padding: 14px 20px; font-size: 1.2rem; border-radius: 40px; border: 2px solid #586fdb; box-shadow: 0 4px 15px rgba(88,111,219,0.5); transition: border-color 0.3s ease; outline: none;}
/* Hero section */

.astro-suggestions-dropdown { position: absolute; width: 100%; background: white; color:#333; 
            border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
            margin-top: 8px; display:none; max-height: 180px; overflow-y: auto; 
z-index: 1000;}

.search-preview-suggestion-list{
	background:white; color:#333; border-radius: 15px; box-shadow: 0 6px 12px rgba(0,0,0,0.15); width: 180px; padding: 12px; text-align: center;
}
.hero {
   
  background: url('../images/banner.png') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-attachment: fixed;
}

.hero-logo {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
	width:310px;
	
    }
    .hero-logo img { display:block; width:100%; height:auto; border-radius:16px; }
.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.btn {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.btn:hover {
  background: linear-gradient(90deg, #2575fc, #6a11cb);
  transform: scale(1.05);
}

/* Product Showcase */
.products {
  padding: 60px 20px;
  background: #111;
  text-align: center;
}

.products h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card .info {
  padding: 20px;
}

.product-card h3 {
  margin: 10px 0;
  font-size: 1.5rem;
  color: #fff;
}

.product-card p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: #000;
  color: #bbb;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  margin-top: 40px;
}

.ai-textarea-wrapper {
position: relative;
width: 100%;
max-width: 500px;
}
.ai-prompt-textarea {
width: 100%;
min-height: 60px;
max-height: 200px;
padding: 16px 48px 16px 16px;
font-size: 1.1rem;
border-radius: 12px;
border: none;
box-shadow: 0 2px 12px rgba(0,0,0,0.05);
background: #f4f6fb;
color: #1a1d1f;
resize: vertical;
outline: none;
transition: box-shadow 0.2s;
}
.ai-prompt-textarea:focus {
box-shadow: 0 4px 20px rgba(36,99,235,0.15);
background: #fff;
}
.ai-submit-btn {
position: absolute;
right: 12px;
bottom: 18px;
background: #3664e0;
border: none;
color: #fff;
border-radius: 50%;
width: 38px;
height: 38px;
font-size: 1.6rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 1px 4px rgba(54,100,224,0.15);
transition: background 0.2s;
}
.ai-submit-btn:hover {
background: #254bb7;
}

/* Custom scrollbar for suggestions box */
#suggestions-box::-webkit-scrollbar {
width: 8px;                /* scrollbar width */
}

#suggestions-box::-webkit-scrollbar-track {
background: #f1f1f1;        /* light background */
border-radius: 10px;
}

#suggestions-box::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #6a11cb, #2575fc); /* gradient thumb */
border-radius: 10px;
}

#suggestions-box::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #2575fc, #6a11cb); /* hover effect */
}

/* For Firefox */
#suggestions-box {
scrollbar-width: thin;
scrollbar-color: #6a11cb #f1f1f1;
}

@media only screen and (max-width: 480px) {
  .hero {
    background-attachment: scroll; /* disable fixed for mobile performance */
    height: auto;
    padding: 20px;
  }

  .hero-logo {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 20px auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .products {
    padding: 40px 15px;
  }

  .product-grid {
    grid-template-columns: 1fr !important; /* single column for mobile */
    gap: 15px;
    max-width: 100%;
    margin: 0 10px;
  }

  .product-card {
    box-shadow:none;
    border-radius: 10px;
    overflow: visible;
  }

  .product-card img {
    height: auto;
    max-height: 180px;
  }

  .product-card .info {
    padding: 15px 10px;
  }

  .product-card h3 {
    font-size: 1.2rem;
  }

  .product-card p {
    font-size: 0.9rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 10px 5px;
    margin-top: 20px;
  }
}


@media only screen and (max-width: 480px) {
 .astro-search-bar{
	width: 400px; 
	}
/* Hero section */
  #top-prompt-container {
    max-width: 90% !important;
    margin: 20px auto !important;
  }

  #top-prompt-input {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
  }

  #suggestions-box {
    max-width: 100% !important;
    width: 100% !important;
    left: 0 !important;
  }
  /*
 
  .search-preview-suggestion-list {
    width: 45% !important; 
    display: inline-block !important; 
    vertical-align: top !important;
    margin: 5px !important;
    padding: 10px !important;
    font-size: 0.9rem !important;
  }
  */
  .search-preview-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important; /* Space between cards */
    padding: 10px !important;
    justify-items: center !important; /* Center items in their column */
  }

  /* This is for each individual suggestion card */
  .search-preview-suggestion-list {
    width: 110px !important; /* The card will take the full width of its column */
    max-width: 120px; /* Prevents cards from getting too large */
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 auto !important; /* Ensures centering within the grid area */
  }
   

  .search-preview-suggestion-list img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-bottom: 5px !important;
  }

  .search-preview-suggestion-list p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }
 
   .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    gap: 15px;
    padding: 0 10px;
  }

  .product-card {
    box-shadow: none !important;
    border-radius: 10px !important;
  }

  .product-card img {
    height: auto !important;
    max-height: 150px !important;
    object-fit: contain !important;
  }

  .product-card .info {
    padding: 10px !important;
  }

  .product-card h3 {
    font-size: 1rem !important;
  }

  .product-card p {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

}

@media only screen and (max-width: 480px) {
  body, html {
    overflow-x: hidden;
  }
  
  #top-prompt-container {
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    margin: 15px auto !important;
  }
  
  #top-prompt-input {
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
}