body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #6a0dad;
  color: white;
  font-size: 1.1rem;
}

/* Hero (welcome) page */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,0.15), transparent),
              linear-gradient(160deg, #6a0dad 0%, #4a009e 50%, #2b0060 100%);
  text-align: center;
  padding: 2rem;
}

.hero-content {
  animation: fadeSlide 1s ease forwards;
}

.hero-logo {
  width: 120px;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  background: #ffffff;
  color: #6a0dad;
  padding: 0.9rem 1.6rem;
  border-radius: 40px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  margin-top: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  background: #e0c3fc;
}

header {
  background: #4a009e;
  padding: 0.5rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  animation: fadeSlide 1s ease forwards;
}

header .logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

header img {
  width: 80px;
}

/* Promo banner */
.promo-banner {
  position: relative;
  margin: 0.5rem auto 0.75rem;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 0.6rem 2.2rem; /* space for close button */
  overflow: hidden;
}

.promo-track {
  white-space: nowrap;
  overflow: hidden;
}

.promo-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: slideLeft 10s linear infinite;
  font-weight: 700;
}

.promo-close {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

@keyframes slideLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

nav {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav button {
  background: white;
  color: #6a0dad;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s ease;
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
}

nav button:hover {
  background: #e0c3fc;
  transform: scale(1.05);
}

main {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  flex: 3;
  max-width: 1200px;
  margin: 0 auto;
}

.product {
  background: white;
  color: #333;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  max-width: 280px;
  margin: 0 auto;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product select,
.product input {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
}

.product button {
  margin-top: 0.5rem;
  width: 100%;
  background: #6a0dad;
  color: white;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
}

.product button:hover {
  background: #4a009e;
}

#cart {
  flex: 1;
  background: white;
  color: #333;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  max-width: 320px;
  animation: fadeSlide 1s ease forwards;
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  height: fit-content;
}

#cart ul {
  padding-left: 0;
  list-style: none;
}

.total-text {
  font-weight: bold;
  margin-top: 1rem;
}

#checkout {
  display: inline-block;
  margin-top: 1rem;
  background: #25d366;
  color: white;
  padding: 0.7rem;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
}

#checkout:hover {
  background: #128c7e;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #4a009e;
  margin-top: 2rem;
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-us-btn {
  background: white;
  color: #6a0dad;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-us-btn:hover {
  background: #e0c3fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.footer-content p {
  margin: 0;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }
  
  header img {
    width: 100px;
  }

  main {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .product-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 0 0.75rem;
  }

  #cart {
    max-width: 100%;
    margin-top: 1rem;
    order: 2;
  }

  nav button {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .product {
    max-width: 100%;
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .product img {
    max-height: 160px;
    object-fit: cover;
  }

  .product select,
  .product input {
    font-size: 0.9rem;
    padding: 0.35rem;
  }

  .product button {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  #checkout {
    width: 100%;
    font-size: 1rem;
  }

  header .logo h1 {
    font-size: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-us-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

/* Phones: enforce strict 2-column grid */
@media (max-width: 480px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}