/* General Styles */
.products__wrapper {
    height: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .products__header__wrapper {
    margin-bottom: 2rem;
    position: relative;
    height: 40vh;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 2% 5%;
  }
  
  .products__header__wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
  }
  
  .products__header__content__wrapper {
    z-index: 1;
    color: #fff;
  }
  
  .products__header__content__wrapper h1 {
    font-size: 4rem;
    font-weight: 600;
  }
  
  .products__header__content__wrapper p {
    font-size: 1.5rem;
  }


  .product__overview {
    padding: 2rem;
    background: lightgray;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.3s ease-in-out;
  }
  
  .product__overview:hover {
    transform: translateY(-10px); /* Subtle hover effect */
  }
  
  .product__overview h2 {
    font-size: 2rem;
    color: #1f2937; /* Darker color for headings */
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 3px solid #ff3e3e; /* Accent under the heading */
    display: inline-block;
    padding-bottom: 10px;
  }
  
  .product__overview p {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 1200px; /* Limit the paragraph width for better readability */
  }
  
  .products__container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5%;
    width: 80%;
  }
  
  .products__sidebar {
    display: flex;
    flex-direction: column;
    width: 20%;
  }
  
  .products__sidebar__link {
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    transition: 0.4s;
    border-bottom: 1px solid #00000060;
    position: relative;
  }
  
  .products__sidebar__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background-color: red;
    transition: 0.2s;
  }
  
  .products__sidebar__link:hover::after {
    width: 100%;
    transition: 0.2s;
  }
  
  .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 16px;
    padding: 1%;
    width: 80%;
    height: 400px;
    overflow-y: scroll;
  }
  
  .product-item {
    background-color: #fff;
    padding: 16px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    text-align: left;
    height: 350px;
    width: 250px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.158);
  }
  
  .product__btn__name__wrapper {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    font-size: 1rem;
  }
  
  .product__btn__name__wrapper a {
    padding: 5px;
    width: 100%;
    font-weight: 600;
    background-color: red;
    color: #fff;
    border-radius: 5px;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-decoration: none;
  }
  
  .product__btn__name__wrapper a::after {
    content: '➜'; /* Bold arrow */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-left: 5px;
    font-weight: bold; /* Make the arrow bold */
  }
  
  .product__btn__name__wrapper a:hover::after {
    opacity: 1;
  }
  
  
  .product__card__btn__icon {
    font-size: 1.6rem;
    transition: 0.2s;
    opacity: 0;
    font-weight: 600;
  }
  
  .product__btn__name__wrapper button:hover .product__card__btn__icon {
    margin-left: 5px;
    opacity: 1;
    transition: 0.2s;
  }
  
  .product__item__img {
    height: 200px;
  }
  
  .product-item p {
    height: 20%;
    font-weight: 600;
  }
  
  .product-item span {
    font-weight: bold;
  }
  
  /* Media Queries */
  @media screen and (max-width: 900px) {
    .products__wrapper {
      width: 100%;
    }
  }
  

  
  @media screen and (max-width: 1000px) {
    .products__header__wrapper {
      height: 50vh !important;
      width: 100% !important;
    }
  
    .products__container {
      width: 80% !important;
    }
  
    .products__sidebar {
      width: 40% !important;
    }
  }
  


  /* For screens up to 720px */
@media (max-width: 720px) {
  .products__header__content__wrapper h1 {
      font-size: 3rem; /* Reduce heading size */
  }

  .products__header__content__wrapper p {
      font-size: 1.2rem; /* Reduce paragraph size */
  }

  .product__overview h2 {
      font-size: 1.8rem; /* Reduce subheading size */
  }

  .product__overview p {
      font-size: 1rem; /* Reduce paragraph size */
  }

  .products__container {
      flex-direction: column; /* Stack sidebar and products */
      align-items: center;
      width: 100%; /* Full width */
  }

  .products__sidebar {
      width: 100%; /* Sidebar takes full width */
      margin-bottom: 2rem; /* Space between sidebar and products */
  }

  .products {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjust grid items */
  }

  .product-item {
      width: 90%; /* Full width for product items */
      max-width: 300px; /* Limit maximum width */
  }
}

/* For screens up to 480px */
@media (max-width: 480px) {
  .products__header__content__wrapper h1 {
      font-size: 2.5rem; /* Further reduce heading size */
  }

  .products__header__content__wrapper p {
      font-size: 1rem; /* Further reduce paragraph size */
  }

  .product__overview h2 {
      font-size: 1.5rem; /* Further reduce subheading size */
  }

  .product__overview p {
      font-size: 0.9rem; /* Further reduce paragraph size */
  }

  .products__sidebar {
      font-size: 1rem; /* Smaller sidebar text */
  }

  .products__sidebar__link {
      font-size: 1rem; /* Smaller link size */
  }

  .products {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Adjust grid for small screens */
  }

  .product-item {
      width: 90%; /* Full width for product items */
      max-width: 250px; /* Limit maximum width */
  }
}