:root {
  --primary-color: #4a148c; /* Deep Purple */
  --primary-hover-color: #38006b; /* Darker Purple */
  --accent-color: #ffab00; /* Gold/Yellow */
  --accent-hover-color: #ff8f00; /* Darker Gold/Orange */
  --light-bg: #f8f9fa; /* Light Gray */
  --dark-bg: #343a40; /* Dark Gray */
  --text-color: #333;
  --light-text-color: #adb5bd;
  --white-color: #ffffff;
  --testimonial-bg: #ede7f6; /* Light Lavender/Purple */
}

/* General Styling */
body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}
.cart-count {
  font-size: 0.75rem;
  padding: 0.25em 0.4em;
  border-radius: 50%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-hover-color);
}

.section-padding {
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}
/* Underline effect for headings */
.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color); /* Use primary color */
  border-radius: 2px;
}
.privacy {
  justify-content: center;
  padding-top: 70px;
  margin-top: 70px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color); /* Ensure text is white */
  padding: 10px 25px;
  font-weight: 500;
  border-radius: 50px; /* Pill shape */
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover-color);
  border-color: var(--primary-hover-color);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--accent-color); /* Use accent color */
  border-color: var(--accent-color);
  padding: 8px 20px;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: var(--text-color); /* Use dark text for contrast */
}

.btn-secondary:hover {
  background-color: var(--accent-hover-color);
  border-color: var(--accent-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

/* Navbar */
.navbar {
  transition: background-color 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 10px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important; /* Use primary color */
}

.navbar-brand i {
  margin-right: 5px;
}

.navbar-nav .nav-link {
  color: #555;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color); /* Use primary color */
}

.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1030;
  padding: 5px 0;
}

/* Hero Section */
#hero {
  /* Keep existing background, overlay adds darkness */
  background: url("images/hero.avif") no-repeat center center; /* Updated placeholder */
  background-size: cover;
  color: var(--white-color);
  text-align: center;
  padding: 180px 0;
  position: relative;
}

#hero::before {
  /* Overlay */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

#hero .container {
  position: relative; /* Ensure content is above overlay */
  z-index: 2;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
/* Hero button uses primary style */

/* Products Section (Shared Styles) */
#products,
#new-arrivals {
  background-color: var(--light-bg);
}
#categories {
  background-color: var(--white-color);
}

.product-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--white-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(74, 20, 140, 0.12); /* Use subtle primary color shadow */
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-height: 250px;
  width: 100%;
}

.product-card .card-body {
  padding: 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card .card-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.product-card .card-text {
  color: #6c757d; /* Keep secondary text gray */
  font-size: 0.9rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color); /* Use primary color for price */
  margin-bottom: 20px;
}
/* Product card button uses secondary (accent) style */

/* Shop by Category Section */
.category-card {
  background-color: var(--white-color);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(74, 20, 140, 0.1); /* Use subtle primary color shadow */
  border-color: var(--primary-color);
}

.category-card i {
  font-size: 3rem;
  color: var(--primary-color); /* Use primary color for icons */
  margin-bottom: 20px;
  display: block;
}

.category-card h5 {
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-color);
}

.category-card a {
  color: inherit;
  text-decoration: none;
}
.category-card a:hover h5 {
  color: var(--primary-hover-color); /* Darker primary on hover */
}

/* About Section */
#about {
  background-color: var(--white-color); /* Ensure white background */
}
#about img {
  border-radius: 15px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* About button uses primary style */

/* Testimonials Section */
#testimonials {
  background-color: var(--testimonial-bg); /* Use light lavender background */
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 15px;
  background-color: var(--white-color);
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-height: 280px;
  display: flex;
  align-items: center;
}
.slider-content {
  width: 100%;
}

.testimonial-slide {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  border: 3px solid #eee;
}

.testimonial-slide blockquote {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.testimonial-slide .author {
  font-weight: 600;
  color: var(--text-color);
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  left: 0;
}

.slider-controls button {
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 5;
}

.slider-controls button:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text-color);
  padding-top: 60px;
  padding-bottom: 30px;
}

footer h5 {
  color: var(--white-color);
  margin-bottom: 20px;
  font-weight: 600;
}

footer p,
footer ul {
  font-size: 0.9rem;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer ul li a {
  color: var(--light-text-color);
  transition: color 0.3s ease;
  display: inline-block;
  margin-bottom: 8px;
}

footer ul li a:hover {
  color: var(--white-color);
}

footer .social-icons a {
  color: var(--light-text-color);
  font-size: 1.3rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: var(--accent-color); /* Use accent color on hover */
}

footer .footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* responsiveness on all devices */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.3rem;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .product-card img {
    max-height: 200px;
  }

  .testimonial-slide img {
    width: 60px;
    height: 60px;
  }
}
.cn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a148c; /* Deep Purple */
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
