
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #ffffff, #e6f3ff);
  margin: 0;
}
.header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 8px;        /* Reduce space around the header */
  gap: 0px;    
  color: #0066cc;
}
header h1 {
  font-size: 16px;
}
.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 140px;
}
 
.header input {
  padding: 6px 10px;
  width: 100%;          /* fills the space properly */
  max-width: 350px;     /* keeps it short on large devices */
  box-sizing: border-box;
}
.search-box {
  position: relative;
  flex: 1;
}

.search-box input {
 padding: 6px 120px;
  width: 100%;
  max-width: 450px;   /* You can set 400–600px depending on your design */
  box-sizing: border-box;
  height: 26px;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  cursor: pointer;
  color: gray;
}
.categories {
  display: flex;
  gap: 10px;
  padding: 15px;
  overflow-x: auto;
}
.categories span {
  padding: 10px 20px;
  background: #dcecff;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.categories span.active {
  background: #0066ff;
  color: white;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: start;      
  justify-content: start;  /* NEW */
  align-items: start;       /* NEW */
  
}
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #cfe3ff;
}
.card img {
  width: 30%;
  height: contain;
  margin: contain;
  object-fit: contain;
  border-radius: 10px;
  overflow: hidden;
}
.price {
  font-size: 20px;
  font-weight: bold;
  color: #0066cc;
}
.rating {
  font-size: 16px;
  color: #ff9900;
}
.reviews {
  font-size: 16px;
  color: #004c99;
}
.logo img {
  height: 60px;
  margin-right: 80px;
}
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  color: #999;
}
.amazon-btn a {
  display: flex;               /* line up items horizontally */
  align-items: center;         /* vertically center */
  gap: 10px;                   /* space between logo, hand & text */
  background: #ff9900;
  padding: 12px 15px;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  width: fit-content;          /* button stays small */
}

.amazon-btn a img {
  height: 24px;                /* Make logo perfect size */
  width: auto;
}

.amazon-btn a .hand {
  font-size: 22px;  
  color: white;   /* make hand white */
  filter: brightness(100); /* ensures emoji stays bright */           /* Make hand visible */
}
.amazon-btn a:hover {
  background: #e07f00;
  transform: scale(1.05);
}
.hurry-badge-glow {
 background: #007bff;  /* blue */
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  animation: glow 1.2s infinite alternate;
}