/* ==============================
   🌟 GLOBAL STYLES
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

/* ==============================
   🌟 HEADER SECTION
============================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #6c63ff, #a682ff);
  color: #fff;
  padding: 15px 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 1.8em;
  font-weight: 600;
  letter-spacing: 1px;
}

header nav ul {
  display: flex;
  list-style: none;
}

header nav ul li {
  margin-left: 25px;
}

header nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #ffd700;
}

/* ==============================
   🌟 SEARCH & FILTER BAR
============================== */
.search-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 40px;
  margin: 20px auto;
  border-radius: 10px;
  width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-box {
  display: flex;
  width: 70%;
}

.search-box input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
}

.search-box button {
  padding: 10px 20px;
  background: #6c63ff;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #5848e4;
}

.filter-box {
  display: flex;
  align-items: center;
}

.filter-box label {
  margin-right: 8px;
}

.filter-box select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ==============================
   🌟 HERO SECTION
============================== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 50px;
  margin: 30px auto;
  width: 90%;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.hero-text {
  width: 50%;
}

.hero-text h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #333;
}

.hero-text p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #666;
}

.hero-text button {
  padding: 12px 25px;
  background: #6c63ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-text button:hover {
  background: #5848e4;
}

.hero-image img {
  border-radius: 15px;
  width: 400px;
  object-fit: cover;
}

/* ==============================
   🌟 CATEGORIES
============================== */
.categories {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 50px auto;
  width: 90%;
}

.cat-box {
  padding: 40px;
  border-radius: 12px;
  color: #fff;
  width: 250px;
  text-align: center;
  font-size: 1.1em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cat-box h3 {
  margin-bottom: 10px;
}

.cat-box.pink { background: #ff80ab; }
.cat-box.purple { background: #9575cd; }
.cat-box.blue { background: #64b5f6; }

/* ==============================
   🌟 STATS SECTION
============================== */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 40px auto;
  width: 90%;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  padding: 20px;
  margin: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  color: #6c63ff;
  margin-bottom: 10px;
}

/* ==============================
   🌟 PRODUCTS SECTION
============================== */
.products {
  background: #fff;
  padding: 50px;
  margin: 40px auto;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.products h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  width: 100%;
  border-radius: 8px;
}

.product-card h4 a {
  text-decoration: none;
  color: #333;
}

.product-card p {
  color: #6c63ff;
  font-weight: 600;
  margin: 10px 0;
}

.product-card button {
  background: #6c63ff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.product-card button:hover {
  background: #5848e4;
}

.btn-secondary {
  display: inline-block;
  margin-top: 8px;
  color: #6c63ff;
  text-decoration: underline;
  font-weight: 500;
}

/* ==============================
   🌟 ANALYTICS SECTION
============================== */
.analytics-section {
  background: #f9f9ff;
  padding: 40px;
  text-align: center;
  width: 90%;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.analytics-section h2 {
  color: #6c63ff;
  margin-bottom: 10px;
}

.analytics-section p {
  color: #666;
  margin-bottom: 20px;
}

/* ==============================
   🌟 FOOTER
============================== */
footer {
  background: linear-gradient(90deg, #6c63ff, #a682ff);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.95em;
}

/* ==============================
   🌟 RESPONSIVE DESIGN
============================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text, .hero-image {
    width: 100%;
  }

  .search-filter {
    flex-direction: column;
    gap: 15px;
  }

  .categories {
    flex-direction: column;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }
}

/* ==============================
   🌟 EXTRA STYLES (From your latest code)
============================== */

.hero-image img {
  transition: transform 0.4s ease-in-out;
}

.hero-image img:hover {
  transform: scale(1.05);
}

.buy-now {
  margin-top: 10px;
}

.place-order {
  background: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.place-order:hover {
  background: #3e8e41;
}

.chart-container {
  transition: transform 0.3s ease;
}

.chart-container:hover {
  transform: scale(1.02);
}

.stats p {
  font-weight: bold;
}
/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f8f9ff;
  color: #333;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #6a5af9, #a685fa);
  padding: 15px 50px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Blog Section */
.blog-section {
  background: #fff;
  margin: 50px auto;
  padding: 50px 20px;
  width: 90%;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.blog-section h2 {
  font-size: 1.8rem;
  color: #444;
  margin-bottom: 25px;
}

.blog-posts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.post {
  background: #f7f4ff;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.post:hover {
  transform: translateY(-5px);
}

.post h3 {
  color: #6a5af9;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #ede7ff, #ffffff);
  padding: 60px 20px;
  text-align: center;
  border-radius: 15px;
  width: 90%;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-section h2 {
  color: #6a5af9;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 25px auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 100%;
  resize: none;
  font-size: 1rem;
}

.contact-form button {
  background: #6a5af9;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #5743f3;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #6a5af9, #a685fa);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 50px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
footer p {
  margin: 0;
}
/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  .blog-posts {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .post {
    width: 100%;
  }
}
/* ==============================
   🌟 BLOG SECTION
============================== */
.blog-section {
  background: #fff;
  margin: 50px auto;
  padding: 50px 20px;
  width: 90%;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
}
.blog-section h2 {
  font-size: 1.8rem;
  color: #444;
  margin-bottom: 25px;
}
.blog-posts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}
.post {
  background: #f7f4ff;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.post:hover {
  transform: translateY(-5px);
}
.post h3 {
  color: #6a5af9;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.post p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 12px;
}
.post a {
  color: #6a5af9;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.post a:hover {
  text-decoration: underline;
}
/* ==============================
   🌟 CONTACT SECTION
============================== */
.contact-section {
  background: linear-gradient(135deg, #ede7ff, #ffffff);
  padding: 60px 20px;
  text-align: center;
  border-radius: 15px;
  width: 90%;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.contact-section h2 {
  color: #6a5af9;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 25px auto 0;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 100%;
  resize: none;
  font-size: 1rem;
}
.contact-form button {
  background: #6a5af9;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  background: #5743f3;
}
/* ==============================
   🌟 FOOTER
============================== */
footer {
  background: linear-gradient(90deg, #6a5af9, #a685fa);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 50px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
footer p {
  margin: 0;
}
/* ==============================
   🌟 RESPONSIVE DESIGN
============================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }
  .blog-posts {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .post {
    width: 100%;
  }
}
.post p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 12px;
}
.post a {
  color: #6a5af9;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.post a:hover {
  text-decoration: underline;
}
