/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

body {
  background: #ffffff;
  color: #111111;
}

/* Colours */
:root {
  --purple1: #97489b; /* main purple */
  --orange: #f69320;
  --white: #ffffff;
}

/* Announcement */
.announcement {
  background: var(--purple1);
  color: var(--white);
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: var(--purple1);
  color: var(--white);
}

.header .logo img {
  width: 150px;
}

.header .nav a {
  margin: 0 20px;
  color: var(--white);
  font-weight: 500;
}

.header .actions button {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--white);
  margin-left: 15px;
  cursor: pointer;
}

/* Hero Slider */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  max-height: 600px; /* limits giant images */
  object-fit: cover;
  border-radius: 10px;
}

.slide .hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  text-align: center;
}

.slide .hero-text h1 {
  font-size: 48px;
  color: var(--purple1);
  margin-bottom: 15px;
}

.slide .hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #ffffff;
}

.cta-btn {
  background: var(--orange);
  color: var(--white);
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.2s;
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--purple1);
}

/* Slider Arrows */
.hero-slider .prev,
.hero-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(151, 72, 155, 0.8); /* purple overlay */
  color: #fff;
  border: none;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.2s;
}

.hero-slider .prev:hover,
.hero-slider .next:hover {
  background: var(--orange);
}

.hero-slider .prev {
  left: 20px;
}

.hero-slider .next {
  right: 20px;
}

/* Categories Section */
.categories {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.categories .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.category-card img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple1);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.category-btn:hover {
  background: var(--orange);
}

/* Featured Products Section */
.products-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.products-section h2 {
  font-size: 32px;
  color: var(--purple1);
  margin-bottom: 40px;
}

.products-section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  display: block;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-info .price {
  font-size: 16px;
  font-weight: 600;
  color: var(--purple1);
  margin-bottom: 15px;
}

.buy-btn {
  background: var(--purple1);
  color: var(--white);
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.buy-btn:hover {
  background: var(--orange);
}

/* Footer */
footer {
  background: var(--purple1);
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}

/* Header nav as rounded buttons */
.header .nav a {
  margin: 0 10px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 25px;
  background: rgba(255,255,255,0.1); /* semi-transparent white */
  transition: background 0.2s, color 0.2s;
}

.header .nav a:hover {
  background: var(--orange);
  color: var(--white);
}

/* Product Detail Page */
.product-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  align-items: flex-start;
}

.product-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

.product-info {
  max-width: 500px;
}

.product-info h1 {
  font-size: 32px;
  color: var(--purple1);
  margin-bottom: 20px;
}

.product-info .price {
  font-size: 24px;
  color: var(--purple1);
  font-weight: 600;
  margin-bottom: 20px;
}

.product-info .description {
  font-size: 16px;
  margin-bottom: 30px;
}


.footer-links a {
  margin: 0 15px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .categories .grid,
  .products-section .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .slide .hero-text h1 {
    font-size: 36px;
  }

  .slide .hero-text p {
    font-size: 16px;
  }
}
