/* Responsive design: Stack vertically on small screens */
@media screen and (max-width: 600px) {
  .sub-menu {
      background-color: rebeccapurple;
  }
  #hamburger {
    display: block;
    position: absolute;
    left: 10px;
    font-size: 1.5em;
    cursor: pointer;
  }

  .navbar {
    display: none;
  }

  .submenu {
    transform: translateX(100%);
  }

  .submenu.active {
    transform: translateX(0);
  }

  #main-menu.slide-left {
    transform: translateX(-100%);
  }

  .title {
    margin-top: 0px;
    font-size: 1.3em;
  }

  .gender-container {
    display: flex;
    gap: 0px;
    border-bottom: 2px grey solid;
    border-top: 2px grey solid;
  }

  .goBack {
    cursor: pointer;
    font-size: larger;
    text-align: right;
  }

  .genderCard {
    padding: 5px 30px 5px 30px;
    cursor: pointer;
  }
  .active {
    font-weight: bold;
  }


  /* Checkout Page */
  .divider {
    border: none;
    border-top: 1px solid #e5e5e5;
  }
  .cart-total {
    margin-bottom: 0;
  }
  .product-image img {
    width: 100px;
  }

  .flex-container {
  width: 90%;
  flex-direction: column;
  }

  .checkout-form {
    width: 90%;
    margin: 0 auto;
    position: relative;
    top: 0;
    padding-bottom: 50px; /* Space before footer */
  }




  /* Checkout Page End */



}

@media screen and (max-width: 1600px) { 
  .flex-container-cart {
  width: 70%;
  }
}
@media screen and (max-width: 1300px) { 
  .flex-container-cart {
  width: 80%;
  }
}
@media screen and (max-width: 1100px) { 
  .flex-container-cart {
  width: 90%;
  }
}
@media screen and (max-width: 900px) { 
  .flex-container-cart {
  flex-direction: column;
  }

}



/* Main page */
    @media (max-width: 768px) {
      .hero {
        padding: 40px 20px;
      }

      .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
        margin-bottom: 25px;
      }

      .section {
        padding: 60px 20px;
      }

      .section-title {
        font-size: 24px;
      }

      .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
      }
    }

    @media (max-width: 480px) {
      .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 20px;
      }

      .hero-cta {
        padding: 10px 25px;
        font-size: 10px;
      }

      .section {
        padding: 40px 15px;
      }

      .section-header {
        margin-bottom: 40px;
      }

      .section-title {
        font-size: 20px;
      }

      .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }

      .grid-item {
        aspect-ratio: 0.65;
      }

      .grid-item-label {
        padding: 15px;
        font-size: 11px;
      }
    }