/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    
    font-family: 'Noto Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-rose-100);
    align-items: center;
    justify-content: center;

}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}


/* END OF RESETS */

:root {
    --color-red: hsl(14, 86%, 42%);
    --color-green: hsl(159, 69%, 38%);

    --color-rose-50: hsl(20, 50%, 98%);
    --color-rose-100: hsl(13, 31%, 94%);
    --color-rose-300: hsl(14, 25%, 72%);
    --color-rose-400: hsl(7, 20%, 60%);
    --color-rose-500: hsl(12, 20%, 44%);
    --color-rose-900: hsl(14, 65%, 9%);
}

picture + p {
   margin-top: 3rem; 
   color: var(--color-rose-300);  
}

.product {
    position: relative;
}

.product img:not(button>img) {
    border-radius: 10px;
    height: 100%;
    width: 100%;
}

/* Added dynamically to a selected image */
.picture-border {
    border-radius: 10px;
    border: 2px solid var(--color-red);
   
}

.product-name {
    font-weight: light;
    margin-top: 2rem;
    color: var(--color-rose-500);
    font-size: 1rem;
}
.price {
    color: var(--color-red);
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}


.add-to-cart-button {
    display: flex;
    gap: 0.1rem;
    padding: 0.3rem 2rem;
    position: absolute;
    bottom: 0;
    left: 50%;
    font-size: 16px;
    transform: translateX(-50%) translateY(-350%);
    background-color: rgba(245, 241, 241, 1.0);
    color: rgb(20, 19, 19);
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--color-red);
    
     
}


.regulate-product-quantity {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 50%;
    justify-content: space-evenly;
    gap: 1rem; /* Increased gap to make it almost equal in width to add-to-cart-button */
    padding: 0.5rem 1rem;
    transform: translateX(-50%) translateY(-320%);
    background-color: hsla(14, 86%, 42%, 1);
    color: white;
    border: none;
    cursor: pointer;
}

.regulate-product-quantity img{
    border-radius: 50%;
    border: 1px solid white;
    padding: 0.4rem;
}

#carbon-neutral-phrase {
    background-color: var(--color-rose-100);
    border-radius: 5px;
    display: flex;
    text-align: center; 
    align-items: center; 
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

h2 {
    color: var(--color-red);
    font-weight: bold;
}

.cartBox {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #ffff;
    border-radius: 10px;
}

.popup {
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
}
.popup-content h2 {
    color: black;
    font-weight: bold;
}
.close-popup-button {
    background-color: var(--color-red);
    border-radius: 1rem;
    padding: 00.5rem 1rem;
    color: white;
    width: 100%;
    border: none;
    
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--color-rose-50);
    border-radius: 10px;
}

@media (min-width: 768px) {
  main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 1rem;
    align-self: center;
    margin-left: 3rem; 
    gap: 5px;
    
  }
  #product-list {
    
  }
  #the-cart-section {
    border-radius: 0.8rem;
    width: 80%;
    height: auto;
    
  }

  .add-to-cart-button{
    
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 2rem;
    position: absolute;
    bottom: 0;
    left: 50%;
    font-size: 16px;
    transform: translateX(-50%) translateY(-320%);
    background-color: rgba(245, 241, 241, 1.0);
    color: rgb(20, 19, 19);
    border: none;
   
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--color-red);
    
     

  }


}
