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; /* Element height */
  width: 50px; /* Element width */
  border-radius: 6px; /* Border styling */
  margin-right: 10px; /* Margin for spacing */
}

.site-title {
  font-size: 28px; /* Font size */
  font-weight: 600; /* Font weight */
  margin: 0; /* Margin for spacing */
  color: #0015ff; /* Text color */
}

.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;
}

.telegram-cta {
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  margin: 0.8rem; /* Margin for spacing */
}

.telegram-cta a {
  background-color: #5ef7ff; /* Background styling */
  color: black; /* Text color */
  padding: 10px 20px; /* Padding for spacing */
  border-radius: 8px; /* Border styling */
  font-weight: 600; /* Font weight */
  text-decoration: none;
  display: flex; /* Display type */
  align-items: center; /* Vertical alignment */
  gap: 10px; /* Gap between elements */
  font-size: 1rem; /* Font size */
  transition: background-color 0.3s ease; /* Background styling */
}

.telegram-cta a:hover {
  background-color: #03c600; /* Background styling */
}

.telegram-cta img {
  height: 20px; /* Element height */
  width: 20px; /* Element width */
}
.category-icons-responsive {
  display: flex; /* Display type */
  flex-wrap: wrap; /* Flexbox layout */
  justify-content: center; /* Horizontal alignment */
  gap: 4px; /* Gap between elements */
  padding: 0.5rem; /* Padding for spacing */
}

.category-icon {
  display: flex; /* Display type */
  flex-direction: column; /* Flexbox layout */
  align-items: center; /* Vertical alignment */
  text-decoration: none;
  color: #333; /* Text color */
  width: 70px; /* Element width */
}

.category-icon img {
  width: 45px; /* Element width */
  height: 45px; /* Element height */
  border-radius: 50%; /* Border styling */
  object-fit: cover; /* Fit image inside container */
  border: 2px solid #ccc; /* Border styling */
  background-color: white; /* Background styling */
  padding: 1px; /* Padding for spacing */
  transition: transform 0.3s ease; /* Smooth transitions */
}

.category-icon span {
  margin-top: 5px; /* Margin for spacing */
  font-size: 12px; /* Font size */
  font-weight: 600; /* Font weight */
  text-align: center; /* Text alignment */
  word-break: break-word;
}

.category-icon:hover img {
  transform: scale(1.1);
  border-color: #0015ff; /* Text color */
}

.category-heading {
  font-size: 1.2rem; /* Font size */
  color: #3c00ff; /* Text color */
  margin: 0px 0px 0px; /* Margin for spacing */
  font-weight: 600; /* Font weight */
  text-transform: uppercase;
}

.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: 22px;
  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 */
}

/*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 */
  }

.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: 600;
}
  
/* 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;
  }
}
.product-image-container {
    position: relative;
    overflow: hidden;
}

#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;
  }
}

/*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 */
}

.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;
}
.buy-now-btn {
  display: block;           /* Make button block-level */
  margin: 20px auto;        /* Center horizontally with top-bottom margin */
  /* existing styles below */
  background: #2458f3;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 38px;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(36, 88, 243, 0.12);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}


.buy-now-btn:hover {
  background: #1742b1;
  box-shadow: 0 4px 12px rgba(36, 88, 243, 0.18);
}

/* Footer */
.footer {
  background-color: #f0f0f0; /* Background styling */
  padding: 50px 10px; /* Padding for spacing */
  text-align: center; /* Text alignment */
  margin-top: 60px; /* Margin for spacing */
  width: 100%;  /* Ensure full width */ /* Element width */
  box-sizing: border-box;  /* Prevent any overflow */ /* Border styling */
}

.features {
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  gap: 10px; /* Gap between elements */
  flex-wrap: wrap; /* Flexbox layout */
  margin-bottom: 20px; /* Margin for spacing */
}

.feature-item {
  display: flex; /* Display type */
  flex-direction: column; /* Flexbox layout */
  align-items: center; /* Vertical alignment */
  max-width: 100px; /* Element width */
}

.feature-item img {
  width: 40px; /* Element width */
  margin-bottom: 10px; /* Margin for spacing */
}

.useful-links ul {
  list-style: none;
  padding: 0; /* Padding for spacing */
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  flex-wrap: wrap; /* Flexbox layout */
  gap: 20px; /* Gap between elements */
  font-weight: 600; /* Font weight */
  font-size: 15px; /* Font size */
}

.useful-links a {
  text-decoration: none;
  color: #0015ff; /* Text color */
}

.footer-bar {
  background-color: #bac6ff; /* Background styling */
  padding: 8px; /* Padding for spacing */
  color: #333; /* Text color */
  font-weight: 500; /* Font weight */
  font-size: 14px; /* Font size */
  position: fixed;  /* Make sure it's at the bottom */ /* Positioning */
  bottom: 0;  /* Stick to the bottom */
  left: 0;
  width: 100%;  /* Ensure it's full width */ /* Element width */
  text-align: center; /* Text alignment */
  z-index: 1000; /* Layer order */
}

a {
  text-decoration: none;
}
.feature-item {
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  align-items: center; /* Vertical alignment */
  flex-direction: column; /* Flexbox layout */
  padding: 1rem; /* Padding for spacing */
  text-align: center; /* Text alignment */
  transition: transform 0.2s ease-in-out; /* Smooth transitions */
}

.feature-item a {
  display: flex; /* Display type */
  flex-direction: column; /* Flexbox layout */
  align-items: center; /* Vertical alignment */
  text-decoration: none;
  color: inherit; /* Text color */
  transition: transform 0.2s ease-in-out; /* Smooth transitions */
}

.feature-item img {
  width: 40px; /* Element width */
  height: 40px; /* Element height */
  margin-bottom: 0.5rem; /* Margin for spacing */
}

.feature-item a:hover {
  transform: scale(1.08);
}

/* 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 */
  }

  .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;
}
#productList.products {
  padding: 1rem 0.5rem; /* 👈 Top/Bottom 1rem (16px), Left/Right 0.5rem (8px) */
}
}