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;
}
/* 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;
}
/* Wishlist link style */
.wishlist-link {
  display: flex;
  align-items: center;
  gap: 6px; /* space between heart and number */
  justify-content: center;
  position: relative;
}

/* SVG heart styling */
.wishlist-link svg {
  width: 18px;
  height: 18px;
  fill: white; /* heart color */
  stroke: white; /* outline if needed */
  stroke-width: 2;
}

/* Number beside the heart */
.wishlist-count {
  font-size: 14px;
  font-weight: bold;
  color: white;
}

/* Hover effect */
.nav-link.wishlist-link:hover svg {
  fill: #0015ff;
  stroke: #0015ff;
}
.nav-link.wishlist-link:hover .wishlist-count {
  color: #0015ff;
}


.page-heading {
  text-align: center;
}

.search-bar {
  width: 100%; /* Element width */
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  margin: 0.5rem 0 0.5rem; /* Margin for spacing */
}
.search-input-wrapper {
  position: relative; /* Positioning */
  width: 70%; /* Element width */
  max-width: 450px; /* Element width */
  left: -30px;
}

.search-input-wrapper input {
  width: 100%; /* Element width */
  padding: 0.75rem 1rem 0.75rem 2.75rem; /* left padding for icon */ /* Padding for spacing */
  border: 1.5px solid #0015ff; /* Border styling */
  border-radius: 10px; /* Border styling */
  font-size: 1rem; /* Font size */
  outline: none;
}

.search-icon {
  position: absolute; /* Positioning */
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 18px; /* Element width */
  height: 18px; /* Element height */
  opacity: 0.7;
  pointer-events: none; /* prevents icon from blocking clicks */
}
.no-result {
  display: block;               /* treat as a block element */
  grid-column: 1 / -1;          /* span the full grid width */
  text-align: center;           /* center the text */
  font-size: 1.1rem;
  color: red;
  margin: 0rem auto 0 auto;     /* ✅ remove top gap and center horizontally */
  font-weight: 500;
  white-space: nowrap;          /* keep in one line */
  padding: 0;                   /* ✅ remove any extra spacing */
  background: none;             /* ✅ remove any background color */
  box-shadow: none;             /* in case any shadow was set */
}

.card {
  background: white; /* Background styling */
  padding: 1rem; /* Padding for spacing */
  border-radius: 12px; /* Border styling */
  box-shadow: 0 0 10px #ccc; /* Shadow for depth */
  text-align: center; /* Text alignment */
  transition: transform 0.2s ease; /* Smooth transitions */
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 100%; /* Element width */
  height: auto; /* Element height */
  border-radius: 8px; /* Border styling */
}
.price {
  font-size: 1rem;
  font-weight: 500;
  color: rgb(0, 141, 21);
  margin: 0rem 0;
}
.product-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  gap: 0.5rem;
  margin-top: 0rem;
  align-items: center; /* Center buttons horizontally */
}

.add-to-cart-btn {
  background-color: #2f40ff; /* Elegant purple */
  color: #ffffff;
  padding: 10px 58px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;       /* Forces text to stay in one line */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-to-cart-btn:hover {
  background-color: #0012d2;
  transform: scale(1.03);
}
/* Buy Now Button outside product cards */
.buy-now-section {
  text-align: center;
  margin: 0px 0;
}

.buy-now-outside {
  display: inline-block;
  background-color: #2f40ff;
  color: #ffffff;
  padding: 10px 50px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow:  0 4px 12px rgba(0, 0, 0, 0.295);
  line-height: 1.2;
}

.buy-now-outside:hover {
  background-color: #0012d2;
}

/*delete*/
.products {
  display: grid; /* Display type */
  grid-template-columns: repeat(4, 1fr); /* 4 products per row on PC */ /* Grid layout */
  gap: 1.5rem; /* Gap between elements */
  padding: 2rem; /* Padding for spacing */
  max-width: 1200px; /* Element width */
  margin: auto; /* Margin for spacing */
}
/*delete*/

  .product-image-container {
    width: 100%;              /* Or a fixed width like 150px */
    aspect-ratio: 1 / 1;      /* Maintains square shape */
    overflow: hidden;
    background-color:  white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }

  .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Fit inside square box */
  }
/* Default Grid: Large screens */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
/* ✅ Small screens (mobile) */
@media (max-width: 600px) {
  .products {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .card {
    padding: 0.75rem;
    border-radius: 10px;
  }

  .card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 10px;
    margin: auto;
    display: block;
    padding: 0px;
  }

  .card h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
  }

  .buy-btn,
  .card button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 4px;
    display: inline-block;
  }
}
.product-image-container {
    position: relative;
    overflow: hidden;
}

.like-icon {
    position: absolute;
    top: 10px;
    right: -40px;
    opacity: 0;
    transition: all 0.4s ease;

    background: white;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);

    display: flex;               /* Center icon inside */
    align-items: center;
    justify-content: center;
}

.like-icon svg {
    display: block;              /* Remove extra bottom space */
    width: 24px;
    height: 24px;
}
.card:hover .like-icon {
    right: 10px; /* slide into view */
    opacity: 1;
}
/* Mobile: always show */
@media (max-width: 768px) {
    .like-icon {
        right: 10px !important;
        opacity: 1 !important;
    }
}
.heart-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: gray;
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.heart-icon.liked {
    fill: red;
    stroke: red;
}
.explore-btn {
  background-color: #0015ff;
  color: white;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: 50px;
}

  /* Position fixed at bottom-left */
  #feedbackBtn {
    position: fixed;
    bottom: 45px;
    left: 10px;
    opacity: 0;              /* Start hidden */
    pointer-events: none;    /* Prevent clicks when hidden */
    transition: opacity 0.5s ease; /* Fade effect */
    z-index: 9999;
  }
  /* Visible state */
  #feedbackBtn.show {
    opacity: 1;
    pointer-events: auto;
  }
#productList.products {
  padding: 1rem 0.5rem; /* 👈 Top/Bottom 1rem (16px), Left/Right 0.5rem (8px) */
}

@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(2, 1fr); /* 2 per row mobile */
    padding: 1rem; /* 🔧 Smaller outer space on mobile */
    gap: 1rem;
  }
}
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
      opacity: 1;
  background: #0015ff; /* Blue like the sample */
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 3px 6px;
  border-radius: 15px;
}
.badge-tag { 
position:absolute;
top:40px; 
left:10px; 
opacity: 1;
transition: all 0.6s ease;
border-radius:15px; 
font-size:12px; 
font-weight:600; 
padding:4px 10px; 
box-shadow:0 1px 4px rgba(0,0,0,0.2); 
}
/*cart popup style*/
/* Modal background */
.cart-modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center; 
  align-items: center;
}

/* Modal card */
.cart-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 350px;
  max-width: 90%;
  margin: 10px;
  padding: 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: popIn 0.3s ease;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 8px; 
  right: 8px;
  font-size: 30px;
  cursor: pointer;
  color: #555;
  background: #f0f0f0;   /* light background */
  border-radius: 6px;     /* rounded square (use 50% for circle) */
  width: 30px;
  height: 30px;
  line-height: 32px;      /* vertically center the X */
  text-align: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #ddd;
  color: #000;
  border-color: #999;
}

/* Gif */
.success-gif {
  width: 120px;
  margin: 15px 0;
}

/* Buttons */
.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-around;
}

.view-cart-btn, .add-more-btn {
  background: #2f40ff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.view-cart-btn:hover, .add-more-btn:hover {
  background: #0012d2;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Success Animation */
.container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ripple {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #0012d2;
  animation: ripple 1.5s ease-out forwards;
}

@keyframes ripple {
  0% { transform: scale(0.2); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #0012d2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: pop 0.5s ease forwards;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-animation svg {
  width: 100px;
  height: 100px;
  stroke: #F9FBFE;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw 0.6s ease forwards 0.5s;
}


@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* Container for stacking */
.notification-container {
  position: fixed;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

/* Notification box */
.cart-notification {
  background: #0012d2;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  min-width: 280px;
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  font-size: 14px;
  white-space: nowrap;
}

/* Animations */
.slide-in {
  animation: slideIn 0.4s ease forwards;
}
.slide-out {
  animation: slideOut 0.4s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

/* Close button */
.cart-notification .close-btn {
  font-size: 16px;
  cursor: pointer;
  background: #fff;
  color: #0012d2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s;
}
.cart-notification .close-btn:hover {
  background: #ddd;
}


.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
}

.product-link img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-link h3 { /*prodict name */
  margin: 0.3rem 0;
  font-size: 0.9rem;
  font-weight: 400;
}

/*PRODUCT DETAILS NAME*/
h2 {
  text-align: center;
  margin-bottom: 20px;
}

.product-card {
  max-width: 1000px;
  margin: auto;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.products {
  display: grid; /* Display type */
  grid-template-columns: repeat(4, 1fr); /* 4 products per row on PC */ /* Grid layout */
  gap: 1.5rem; /* Gap between elements */
  padding: 2rem; /* Padding for spacing */
  max-width: 1200px; /* Element width */
  margin: auto; /* Margin for spacing */
}
/* 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;
}
/* Tooltip wrapper */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Base tooltip wrapper */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltip message */
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -35px; /* place above element */
  left: 50%;
  transform: translateX(-50%);
  background: #1f32ff;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Show on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Small arrow under tooltip */
.tooltip-text::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}



/* 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 */
}

/* RESPONSIVE LAYOUT FOR HOME PAGE */
@media (max-width: 768px) { /* Element width */
  .products {
    grid-template-columns: repeat(2, 1fr); /* Grid layout */
    gap: 20px; /* Gap between elements */
  }

  .card img {
    height: 390px; /* Element height */
  }
.discount-badge {
    left: 10px !important;
    opacity: 1 !important;
}
.badge-tag  { 
    left: 10px ;
    opacity: 1 ;
}
  .search-bar-wrapper input[type="text"] {
    font-size: 0.95rem; /* Font size */
    padding: 0.65rem 1rem; /* Padding for spacing */
  }
  .card {
    padding: 0.2rem !important; /* Padding for spacing */
    border-radius: 6px !important; /* Border styling */
  }

  .card img {
    width: calc(100% - 8px) !important; /* 4px margin on each side */ /* Margin for spacing */
    height: auto !important; /* Element height */
    aspect-ratio: 1 / 1 !important; /* Maintains 1:1 ratio */
    margin: 2px auto !important; /* Margin for spacing */
    display: block; /* Display type */
    border-radius: 8px !important; /* Border styling */
    object-fit: contain !important; /* Prevents cropping */ /* Fit image inside container */
  }

  .buy-btn,
  .card button {
    margin-bottom: 4px;
    display: inline-block;
  }
  .products {
    gap: 0.3rem !important; /* Gap between elements */
    padding: 0.4rem !important; /* Padding for spacing */
  }
}
@media (min-width: 768px) and (max-width: 1030px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
  .like-icon {
    right: 10px !important;
    opacity: 1 !important;
}
   .heart-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: gray;
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

    .heart-icon.liked {
    fill: red;
    stroke: red;
}
.discount-badge {
    left: 10px !important;
    opacity: 1 !important;
}

.badge-tag  { 
    left: 10px ;
    opacity: 1 ;
}
#productList.products {
  padding: 1rem 0.5rem;
}
}





