html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, var(--gray-bg), #000000);
  color: var(--white);
  font-family: "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  transition: opacity 1s ease;
  opacity: 1;
}

body.loaded {
  opacity: 1;
}

nav#navbar {
  background-color: rgba(30, 58, 138, 0);
  height: 70px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
nav#navbar.scrolled {
  background-color: var(--theme-primary) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
  color: var(--white) !important;
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--theme-accent) !important;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  color: var(--white);
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 30px;
}

.btn-main {
  background: var(--theme-accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

.btn-main:hover {
  background: var(--white);
  color: var(--theme-accent);
}

section {
  padding: 100px 20px;
}

.section-heading {
  font-size: 2.2rem;
  color: var(--theme-accent);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.section-accent {
  width: 60px;
  height: 4px;
  background: var(--theme-primary);
  margin: 0.5rem auto 2rem;
}

.belief-card {
  border: none;
  background: var(--white);
  color: var(--text-dark);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.belief-card * {
  color: var(--text-dark) !important;
}

.belief-card:hover {
  transform: translateY(-5px);
}

.belief-icon {
  font-size: 2.5rem;
  color: var(--theme-primary);
}

.bg-white,
.bg-white * {
  color: var(--text-dark) !important;
}

.newsletter-cta {
  background: linear-gradient(
    135deg,
    var(--theme-accent),
    var(--theme-primary)
  );
  color: var(--white);
  border-top: 6px solid #fff;
  border-bottom: 6px solid #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.newsletter-cta p,
.newsletter-cta h2 {
  color: var(--white);
}

.newsletter-cta .btn {
  background: #222;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

.newsletter-cta .btn:hover {
  background: #000;
}

footer {
  background: linear-gradient(
    135deg,
    var(--theme-primary),
    var(--theme-accent)
  );

  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

footer a {
  color: #f9f9f9;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

footer img {
  max-height: 30px;
  object-fit: contain;
}

.breadcrumb-item.active {
  color: #fff !important;
}

@media (max-width: 768px) {
  .navbar-dark .dropdown-menu {
    background-color: #212529 !important;
    color: #fff !important;
  }

  .navbar-dark .dropdown-menu .dropdown-item {
    color: #fff !important;
  }

  .navbar-dark .dropdown-menu .dropdown-item:hover {
    background-color: #343a40 !important;
    color: #fff !important;
  }

  .navbar-dark .navbar-nav .nav-link,
  .navbar-dark .dropdown-menu {
    color: #fff !important;
    background-color: #212529 !important;
  }

  .navbar-nav .dropdown-menu {
    width: 100%;
    border-radius: 0;
    margin-top: 0;
  }

  .navbar-collapse {
    background: #212529;
    padding: 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
  }

  .navbar-collapse .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu-dark .dropdown-item {
    color: #fff;
  }

  .dropdown-menu-dark .dropdown-item:hover {
    background-color: #343a40;
  }

  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }

  .nav-item.dropdown .dropdown-toggle::after {
    display: none;
  }
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0.25rem;
}

.image-spinner {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.image-spinner::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--theme-primary, #0d6efd);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 18px;
  background: var(--theme-accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.cart-icon {
  font-size: 1.25rem;
}

