@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&family=Roboto:wght@400;700;900&display=swap');

:root
{
    --green: rgb(0, 128, 0) ;
    --black: #130f40;
    --light-color: #666;
    --box-shadow: 0 .5rem 1.5rem rgba(0,0,0,0.1);
    --border: .2rem solid rgba(0,0,0,0.1);
    --outline: .1rem solid rgba(0,0,0,0.1);
}

*
{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    /* text-transform: capitalize; */
    transition: all 0.2s linear;
    /* animation: carouselAnim 10s linear infinite; */
}


html 
{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body
{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  padding: 20px;
}

.heading span
{
    background-color: var(--green);
    color: #fff;
    display: inline-block;
    padding: 0.5rem 3rem;
    clip-path: polygon(100% 0, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
}

.header
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4%;
    background: #fff;
    box-shadow: 0px 60px 100px rgba(11, 172, 11,0.5);
}

.header .logo 
{
    margin: -20px 0;
    padding-right: -100px;
}

.header .logo .groco_logo
{
    width: 24rem;
}


.header .navbar a 
{
    font-size: 1.8rem;
    margin: 0 1.5rem;
    color: var(--black);
}

.header .navbar a:hover
{
    color: var(--green);
}

.header .navbar a::after
{
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: green;
    border-radius: 0.5rem;
    transform-origin: left;
    transform: scaleX(0);
    transition: all 1s;
}

.header .navbar a:hover::after
{
    transform: scaleX(1);
}

.header .icons div
{
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    border-radius: 0.5rem;
    background: #eee;
    color: var(--black);
    font-size: 2.3rem;
    text-align: center;
}

.header .icons div:hover 
{
    background: var(--green);
    cursor: pointer;
    color: white;
}

.header .navbar.active
{
    right: 2rem;
    transition: 0.4s linear;
}

@media (max-width: 991px)
{
    html 
    {
        font-size: 55%;
    }
    .header
    {
        padding: 2rem;
    }
    section
    {
        padding: 2rem;
    }
}

@media (max-width: 768px)
{
    #menu-btn
    {
        display: inline-block;
    }

    .header .search-form
    {
        width: 90%;
    }

    .header .navbar
    {
        position: absolute;
        top: 110%;
        right: -110%;
        width: 30rem;
        box-shadow: var(--box-shadow) ;
        border-radius: 0.5rem;
        background: #fff;
    }

    .header .navbar a
    {
        font-size: 2rem;
        margin: 2rem 2.5rem;
        display: block;
    }
    
}

@media (max-width: 450px)
{
    html 
    {
        font-size: 50%;
    }

    .heading
    {
        font-size: 2.5rem;
    }
}

.add {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    padding: 20px;
    margin: 0 auto;
    max-width: 500px;
    margin-top: 50px;
  }
    
  .add input,
  .add select {
    position: relative;
    height: 50px;
    width: 100%;
    outline: none;
    color: #707070;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 15px;
    margin-top: 8px;
  }
  
  .add input[type="file"] {
    margin-bottom: 20px;
  }
  
  @media screen and (max-width: 768px) {
    .add {
      padding: 10px;
    }
  
    .add label,
    .add input,
    .add select {
      font-size: 0.9rem;
    }
  
    .add button {
      padding: 5px 10px;
      font-size: 0.9rem;
    }
  }

  section
  {
    margin-top: 200px;
  }

  .productForm
  {
    text-align: center;
    font-size: 30px;
    color: #130f40;
  }

  #photo {
    display: none;
  }
  
  .file-input-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .file-input-label {
    display: inline-block;
    /* padding: 10px 15px; */
    padding: 15px 20px;
    /* background-color: #4CAF50; Green */
    background-color: green; /* Green */
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .file-input-label:hover {
    /* background-color: #45a049;*/ /*Darker Green on hover*/ 
    opacity: 0.93;
    transition: 0.2s ease-in;
  }
  
  .file-input-wrapper::before {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    /* font-size: 16px; */
    font-size: 18px;
    pointer-events: none;
  }
  
  #photo:focus + .file-input-wrapper::before {
    display: none;
  }

  #upload {
    height: 5rem;
    width: auto;
    background-color: green;
    color: #fff;
    font-size: 2rem;
    font-weight: 400;
    border: none;
    margin-top: 30px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  #upload:hover {
    /* background-color: #45a049; Darker Green on hover */
    opacity: 0.93;
    transition: 0.2s ease-in;
  }
  
  #upload:active {
    background-color: #3d8b40; /* Even darker green on click */
  }
  
  .container
  {
      position: relative;
      max-width: 700px;
      width: 100%;
      background: #fff;
      padding: 25px;
      border-radius: 8px;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
  }

  