:root{
  --primary: #146eb4;      /* Amazon Blue */
  --secondary: #ff9900;    /* Amazon Orange */
  --muted: #666;           /* muted text */
  --background: #f3f3f3;   /* page background */
  --text: #111;            /* main text color */
}

/* Reset & base */
*{box-sizing:border-box}
body{
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--background);
}
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.site-header{
  background: var(--primary);
  color: #fff;
  padding: 1rem 0;
}
.site-header a{
  color: #fff;
  margin-right: 1rem;
  text-decoration: none;
}
.brand{
  font-weight: 700;
  font-size: 1.5rem;
}

/* Preloader */
#preloader{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 9999;
  transition: opacity .4s;
}
#preloader.hidden{
  opacity: 0;
  pointer-events: none;
}

/* Product grid */
.products-grid{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1rem;
}
@media(min-width:900px){
  .products-grid{
    grid-template-columns: repeat(3,1fr);
  }
}

/* Product card */
.card{
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .18s, box-shadow .18s;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* Price styling */
.price{
  font-weight: 700;
  color: var(--secondary);
  font-size: 1rem;
}

/* Buttons */
.button{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s, transform .3s;
}
.button:hover{
  background: #0f57a0;
  transform: scale(1.03);
}

/* Small animation for calls to action */
@keyframes pulse{
  0%{transform: scale(1);}
  50%{transform: scale(1.03);}
  100%{transform: scale(1);}
}
.cta{
  animation: pulse 4s infinite;
}

/* Links */
a{
  color: var(--primary);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
}

/* Section backgrounds (cards, categories) */
.section{
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
