body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: rgb(0, 0, 0);
  padding-top: 70px;

  /* 👇 Add these lines 👇 */
  position: relative;
  z-index: 0;
}

h2, h3 {
  text-align: center;
}
/* Header */
.header-bar {
  position: fixed; /* Changed from sticky */
  top: 0;
  width: 100%;
  background-color: #a8c2ff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: top 0.3s ease;
}

.header-hidden {
  top: -100px; /* Pushes header out of view */
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.logo-section {
  display: flex;
  align-items: center;
}
.logo {
  height: 50px;
  width: 50px;
  border-radius: 10px;
  margin-right: 10px;
}
.site-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}
.nav-links {
  display: flex;
  gap: 10px;
}
.nav-link {
  padding: 8px 16px;
  background-color: #0015ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  border: 2px solid #0015ff;
}
.nav-link:hover {
  background-color: white;
  color: #0015ff;
}
.cart-link {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background-color: rgb(255, 0, 0);
  color: white;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 100%;
  font-weight: bold;
  display: none;
}
/* Product List */
.page-content {
  max-width: 1000px;
  margin: 60px auto 20px;
  padding: 0 0px;
  font-size: 16px;
  line-height: 1.7;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.checkout-summary {
  text-align: center;
  font-size: 18px;
  margin-top: 30px;
}
.checkout-summary {
  text-align: center;
  font-size: 18px;
  margin-top: 30px;
}
@media (min-width: 768px) {
  .cart-card {
    max-width: 800px;
    margin: 16px auto; /* center the card */
    padding: 4px;
  }
}

/* Checkout Page */
.checkout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.billing-form, .cart-summary {
  flex: 1 1 300px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.billing-form label {
  display: block;
  margin-bottom: 15px;
}
.billing-form input {
  width: 94%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid rgb(0, 0, 255);
  font-size: 16px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.168);
  gap: 6px;
}
.cart-item span {
  font-size: 13px;
  text-align: left;
  position: left;
}
.cart-item img.product-image {
  width: 60px; /* Adjust the size of the image */
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.662);
}
.buy-now-container {
  text-align: center;
  margin-top: 30px;
}
.buy-now-container .buy-btn {
  background-color: #3c00ff;
  color: white;
  padding: 12px 20;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  width: 180px;        /* Decreased width */
  max-width: 100%;
}
.buy-btn {
  background-color: #3927ff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
  font-size: 18px;
  text-align: center;
}
.buy-btn:hover {
  background-color: #0700cf;
}

.explore-btn {
  background-color: #2f40ff;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.explore-btn:hover {
  background-color: #0015ff;
}
.remove-btn {
  margin-left: 10px;
  background: red;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 14px;
}
.remove-btn:hover {
  background: darkred;
}

/* Force vertical scrollbar */
html {
  height: 100%;
  overflow-y: scroll !important;
}

/* Webkit Browsers (Chrome, Edge, Brave, Opera, newer Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #bac6ff;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0015ff;
}

/* Arrows: Only WebKit allows this */
::-webkit-scrollbar-button:single-button {
  display: block;
  background-color: #bec0ff;
  height: 12px;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Up Arrow */
::-webkit-scrollbar-button:single-button:decrement {
  height: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  background-color: transparent;
  background-image: url("../media/up-arrow.png"); /* Replace with correct path */
  /* Make it an up arrow */
}

/* Down Arrow */
::-webkit-scrollbar-button:single-button:increment {
  height: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  background-color: transparent;
  background-image: url("../media/down-arrow.png"); /* Use original image */
}
/* Footer */
.footer {
  background-color: #f0f0f0;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  width: 100%;  /* Ensure full width */
  box-sizing: border-box;  /* Prevent any overflow */
}
.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100px;
}
.feature-item img {
  width: 40px;
  margin-bottom: 10px;
}
.useful-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  font-weight: bold;
  font-size: 16px;
}
.useful-links a {
  text-decoration: none;
  color: #3c00ff;
}
.footer-bar {
  background-color: #a8c2ff;
  padding: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  position: fixed;  /* Make sure it's at the bottom */
  bottom: 0;  /* Stick to the bottom */
  left: 0;
  width: 100%;  /* Ensure it's full width */
  text-align: center;
  z-index: 1000;
}
a {
  text-decoration: none;
}
/* Responsive Fixes */
@media (max-width: 768px) {
  .buy-btn {
    font-size: 14px;
    padding: 10px;
  }
  .product-card {
    padding: 6px;
  }
  .product-title {
    font-size: 16px;
  }
  .product-desc {
    font-size: 12px;
  }
  .page-content {
    font-size: 14px;
    padding: 15px;
  }
  .billing-form, .cart-summary {
    padding: 20px;
  }
}