/* ---------------------------
   Global Styles
----------------------------*/
:root {
  --primary-color: #007bff;
  --bg-color: #ffffff;
  --text-color: #212529;
  --card-bg: rgba(255, 255, 255, 0.5);
  --btn-gradient: linear-gradient(45deg, #00c6ff, #0072ff);
}

/* Dark Theme Variables */
body.dark-mode {
  --bg-color: #121212;
  --text-color: white;
  --card-bg: rgba(25, 25, 25, 0.7);
  --btn-gradient: linear-gradient(45deg, #ff6a00, #ee0979);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  scroll-behavior: smooth;
}

h1, h2, h3, h5 {
  font-weight: 600;
}

/* ---------------------------
   Navbar
----------------------------*/
.navbar {
  backdrop-filter: blur(10px);
  background: var(--card-bg, #ffffff);
  transition: all 0.3s ease;
  padding: 0.8rem 1rem;
}
.navbar {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
  transition: transform 0.3s ease;
  height: 65px;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.navbar a.nav-link {
  color: var(--text-color, #000000) !important;
  font-weight: 500;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.navbar a.nav-link:hover {
  color: var(--primary-color, #007bff) !important;
}

#themeToggle {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 💙 Active Link Style */
.navbar .nav-link.active-link,
.navbar .nav-link.active {
  color: #007bff !important;
  font-weight: 600;
  border-bottom: 2px solid #007bff;
  transition: 0.3s ease;
}
/* Fix responsiveness */
@media (max-width: 992px) {
  .navbar-nav {
    text-align: center;
  }
  .navbar-brand img {
    height: 50px;
  }
}


/* ---------------------------
   Hero Section
----------------------------*/
#hero .carousel-item img {
  height: 80vh;
  object-fit: cover;
  filter: brightness(70%);
  
}
.carousel-item:hover {
  transform: scale(1.1);
}
.carousel-caption {
  bottom: 30%;
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: 700;
}

.btn-gradient {
  background: var(--btn-gradient);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.btn-gradient:hover {
  transform: scale(1.05);
  color: #fff;
}

/* ---------------------------
   Category Section
----------------------------*/
.category-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
}

.category-card img {
  border-radius: 15px;
  height: 280px;
  width: 100%;
  object-fit: cover;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-card h5 {
  margin-top: 10px;
  font-weight: 600;
}

/* ---------------------------
   Product Section
----------------------------*/
#latest-products .card {
  background: var(--card-bg);
  border: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#latest-products .card img {
  border-radius: 15px;
  height: 220px;
  object-fit: cover;
}

#latest-products .card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ---------------------------
   Features
----------------------------*/
#features i {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* ---------------------------
   Footer
----------------------------*/
footer {
  font-size: 0.9rem;
}

/* ---------------------------
   Scroll To Top Button
----------------------------*/
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--btn-gradient);
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 50%;
  display: none;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  transform: scale(1.1);
}

/* ===================== LATEST PRODUCTS ===================== */
#latest-products {
  background: var(--bg-color);
  transition: background 0.3s ease;
}

.product-card {
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.product-card img {
  width: 100%;
  height: 10%; 
}

.product-card .card-body {
  padding: 15px;
}

.product-card h5 {
  font-size: 1.1rem;
  color: var(--text-color);
}

.product-card p {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-card .price {
  font-weight: bold;
  color: var(--primary-color);
}

.product-card .btn {
  background: var(--primary-color);
  color: white;
  border: none;
  transition: 0.3s;
}

.product-card .btn:hover {
  opacity: 0.8;
}

/* Rating stars */
.star {
  color: gold;
  font-size: 1rem;
}
