/* categories */
.categories{
  display:flex;
  gap:12px;
  padding:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
}
.cat{
  min-width:120px;
  background:linear-gradient(180deg,var(--accent),#fff);
  border-radius:16px;
  padding:12px;
  text-align:center;
  box-shadow:0 6px 18px rgba(120,80,200,0.06);
  flex:0 0 auto;
}
.cat img{ width:54px; height:54px; object-fit:cover; border-radius:10px; margin-bottom:8px; }

/* Promotional Banner */
.promotional-banner {
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  height: 280px; /* fixed height for effect */
  background-color: #3d2363;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.promotional-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('promo_banner_image.png');
  background-size: cover;
  background-position: center 30%; /* slight offset for faux parallax */
  opacity: 0.6;
  z-index: 0;
}
.banner-content {
  position: relative;
  z-index: 1;
  padding: 0 18px;
  max-width: 600px;
  /* background: rgba(0,0,0,0.2); Not needed if text shadow is enough */
  padding: 20px;
  border-radius: var(--radius);
}
.banner-content h2 {
  font-size: 30px;
  margin: 0 0 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.banner-content p {
  font-size: 16px;
  margin: 0 0 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.banner-content .btn {
  padding: 12px 24px;
  font-size: 16px;
}

/* Featured Products (Horizontal scroll) */
.featured-products {
    padding: 0 18px;
}
.featured-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 15px; /* space for shadow */
}
.featured-grid .product {
    min-width: 200px;
    flex: 0 0 auto;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
}

/* Product Grid (Homepage) */
.products{
  padding:12px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.product{
  background:white;
  border-radius:12px;
  padding:10px;
  box-shadow:0 6px 18px rgba(15,15,15,0.04);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.product .thumb{
  width:100%;
  height:120px;
  border-radius:10px;
  object-fit:cover;
  background:#eee;
}
.product .name{ font-size:14px; font-weight:600; color:#222; margin:0; }
.product .price{ color:var(--purple-dark); font-weight:700; font-size:13px; }
.product .add-btn {
  background: var(--purple);
  color: white;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  text-align: center;
}
.product .add-btn:hover {
  background: var(--purple-dark);
}

/* responsive tweaks */
@media(min-width:700px){
  .products{ grid-template-columns:repeat(3,1fr); max-width:980px; margin:0 auto; }
  .promotional-banner::before {
    background-attachment: fixed; /* Parallax effect */
  }
  .promotional-banner {
    height: 350px;
  }
  .featured-grid {
      max-width: 980px;
      margin: 0 auto;
      justify-content: space-between;
      overflow-x: hidden;
  }
  .featured-grid .product {
      min-width: 220px;
  }
}