:root {
  --primary-purple: #6A4C93;
  --light-purple: #B8A9D9;
  --cream: #F5EDE4;
  --waffle-brown: #C68642;
  --dark-text: #2E2E2E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--dark-text);
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8%;
  background: var(--primary-purple);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  padding: 4px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: rotate(10deg) scale(1.05);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* BESTSELLER HERO */
.bestseller-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
  color: white;
}

.bestseller-hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.bestseller-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* BESTSELLER ITEMS GRID */
.bestseller-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 50px 8%;
  max-width: 1200px;
  margin: 0 auto;
}

/* BESTSELLER CARD */
.bestseller-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.bestseller-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-purple);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(106, 76, 147, 0.3);
}

.bestseller-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--cream);
  padding: 15px;
}

.card-info {
  padding: 20px;
}

.card-info h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.description {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  color: var(--waffle-brown);
  font-weight: 600;
}

.rating {
  font-size: 0.9rem;
  color: #888;
}

/* CTA SECTION */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
  color: white;
}

.cta-section h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--waffle-brown);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(198, 134, 66, 0.4);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 8% 20px;
  background: var(--primary-purple);
  color: white;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #f5f5f5;
}

.franchise-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--waffle-brown);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 10px 0;
  transition: 0.3s;
}

.franchise-btn:hover {
  background: #b3722e;
  transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .bestseller-items {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 5%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--primary-purple);
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 20px;
    border-radius: 0 0 0 12px;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .bestseller-hero {
    padding: 40px 20px 30px;
  }

  .bestseller-hero h1 {
    font-size: 2rem;
  }

  .bestseller-hero p {
    font-size: 1rem;
  }

  .bestseller-items {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 5%;
  }

  .bestseller-card img {
    height: 180px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .bestseller-hero h1 {
    font-size: 1.6rem;
  }

  .bestseller-hero p {
    font-size: 0.9rem;
  }

  .card-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    top: 10px;
    left: 10px;
  }

  .bestseller-card img {
    height: 150px;
    padding: 10px;
  }

  .card-info {
    padding: 15px;
  }

  .card-info h3 {
    font-size: 1.1rem;
  }

  .description {
    font-size: 0.8rem;
  }

  .price {
    font-size: 1.2rem;
  }

  .cta-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}
