

.productpage_top_bar {
    margin-top: 5em;
    height: 4.5em;
    width: 100%;
    background-color: var(--grey);
    display: flex;
    grid-template-columns: 4fr 8fr;
    align-items: center;
    justify-content: center;
    position: relative;
}



.heart_icon {
    position: absolute;
    height: 3.3em;
    right: 1em;
}
.category_icon {
    position: absolute;
    height: 3em;
    left: 2em;
    padding: 0.6em;
    background-color: var(--red_default);
    border-radius: 1vw;
}

.title > h2 {
    
    margin-right: 1em;
}


.product_main_container {
    
    
    width: 100%;

    background-color: var(--white);
    display: grid;
    grid-template-columns: 3fr 1fr 8fr;
    
    
    
}
.product_main_container > .main_img_container {
    
    width: 100%;
    
    display: flex;
    justify-content: center;
    background-color: black;
    
    
    
}
.product_main_container > .main_img_container > img {
    
    width: 100%;
    
    aspect-ratio: 3/4;
    
    
    object-fit: contain;
}
.images_box {
    font-size: 1.1vw;
    display: flex;
    flex-direction: column;
    
    justify-content: center;
    margin-right: 1em;
    background-color: black;
    gap: 0.8em;
    height: 100%;    
}
.pic_container {
    
    width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1em;
}

.pic_container > img {
    width: 5em;
    height: 5em;
    object-fit: cover;
    border: 1px solid var(--grey);
    border-radius: 10px;
}   


.product_box {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding-bottom: 0.5em;
    
    justify-content: center;
    align-items: center;
    height: 100%;
}
.product_box > p {
    display: flex;
    justify-content: center;
    white-space: pre-line;
    font-weight: 500;
    padding-left: 1em;
    
    
}
.variant_buttons_containers {
    width: 80%;
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 1em;
    
}
/* Use 1 column if less than 2 children */
.variant_buttons_containers:not(:has(> :nth-child(2))) {
    grid-template-columns: 1fr;
    width: 50%;
}

/* Use columns if more than 2 children */
.variant_buttons_containers:has(> :nth-child(3)) {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 1em;
}

/* Use columns if more than 7 children */
.variant_buttons_containers:has(> :nth-child(8)) {
    
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1em;
}
.variant_button {
    display: flex;
    justify-content: center;
    background-color: var(--red_default);
    color: var(--white);
    border: none;
    padding: 1em;
    border-radius: 100vw;
    cursor: pointer;
    opacity: 0.6;
    white-space: nowrap;
    font-size: 1.1em;

}
.selected_variant {
    
    opacity: 1;
    outline: 2px solid var(--t);
    
}
.quantity_container{
    
    margin-top: 0.5em;
    margin-bottom: 1em;
    position: relative;
    height: 1.3em;
    border-radius: 100vw;
    width: 8.3em;
    background-color: var(--white_2);
}
.quantity_button {
    display: flex;
    justify-content: center;
    background-color: var(--red_default);
    color: var(--white);
    border: none;
    padding: 0.8em;
    border-radius: 100vw;
    cursor: pointer;
    position: absolute;  
}
.quantity_button > img {
    height: 1.3em;
    width: 1.3em;
}
#plus {
    right: 0;
}
#minus {
    left: 0;
}
.quantity_number {
    font-size: 1.8em;
    font-weight: 500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

}
.add_to_cart_box {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 5em;
    width: 53.2em;
    gap: 1em;
    padding: 1em;
    
    
    color: var(--white);
    cursor: pointer;
    
}
.name {

    position: absolute;
    left:0;
    width: 20em;
    color: black;
    font-size: 1.4em;
    font-weight: bold; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2em;
    font-size: 1.5em;
    background-color: var(--white_2);
    padding:0.5em;
    border-radius: 1vw;
   

}
.product_name {
   max-width: 12em;
}
#variant_selected {
    font-weight: 500;
}
#variant_price {
    position: absolute; 
    right: 2em;
     
}
.add_to_cart_button_container {
    height: 5.5em;
    position: absolute;
    right: 0;
    width: 26em;
    display: flex;
    

}
.add_to_cart_button {
    position: absolute;
    right: 0;
    cursor: pointer;
    background-color: var(--red_light);
    border-left: 3px solid var(--red_default);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100vw;
    width: 12em;
    height: 100%;
    font-weight: 600;
    font-size: 1.1em;
    
}
.add_to_cart_button > img {
    height: 2em;
    margin-right: 1em;
}
.price {
    position: absolute;
    left:0;
    height: 100%;
    width: 8.5em;
    padding-right: 4.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--brand);
    
    border-radius: 100vw;
    

    font-size: 2em;
    font-weight: 500;
}
.euro_sign {
    position: absolute;
    left: 0.7em;
    font-weight: 400;
    
}
.quantity_container {
    display: grid;
    color:black;
    
    
    justify-content: center;
    align-items: center;
    gap: 1em;
    padding: 1em;
}
@media (max-width: 1300px) {
    
   
     .main_img_container > img {
        font-size: 1.2vw;
        width: 24em;
        
    }
    .product_main_container {
        grid-template-columns: 3fr 1fr 6fr;
    }
    
    .add_to_cart_box {
        transform: scale(0.8);
    }
    .product_box{
        font-size: 1.2vw;
        width:49em;
        
    }
    
}
@media (max-width: 901px) {
    
.main_img_container {
    width: 100%;
    height: 30em;
    
    overflow: hidden;
}
.main_img_container > img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
    .product_main_container {
        
      
        margin-top: 7em;


    }
    
    
    .productpage_top_bar {
        font-size: 1em;
        position: fixed;
        height: 3.4em;
        top:0em;
        
        width: 100%;
        z-index: 4;
        
    }
     .title > h2{
        font-size: 1.2em;
        margin-right: 0;
        padding-right: 3em;
        padding-left: 3em;
        
    }
    .category_icon {
        height: 2em;
        left:0; 
    }
    .heart_icon {
        height: 2em;
        right: 0.5em;
    }
    
    .add_to_cart_box {
        transform: scale(0.73);
    }
    .product_box{
        font-size: 1.4vw;
        width:41em;
    }
    .variant_buttons_containers:has(> :nth-child(3)) {
    grid-template-columns:   1fr 1fr 1fr;
    column-gap: 2em;
    }

   
}


@media (max-width:700px) {
    .variant_buttons_containers:has(> :nth-child(3)) {
    grid-template-columns:   1fr 1fr;
    column-gap: 2em;
    }
    
   
    
   
   
    .product_main_container   {
        font-size: 1em;
        width: 100%;
        
        
    }
    
    .product_main_container {
        display: flex;
        flex-direction: column;
        margin-top: 6em;
        padding-top: 1em;
        justify-content: center;
        width: 100%;
        
    }
    
   
    .product_box{
        font-size: 1em;
       
        width: 100%;

        
    }
    .images_box {
    font-size: 1em;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;

    
    margin-top: 0;
    margin-right: 0;
    padding-top: 1em;
    padding-bottom: 1em;
    
    gap: 0.8em;
    height: 100%;    
    }
    .pic_container {
    
    width: 95%;
    }
    .pic_container > img {
    width: 5em;
    height: 5em;
    object-fit: cover;
    }
    .name {
        position: relative;
        width: 90%;
    }
    #variant_price {
        position: relative;
        left: 0;
    }
    .add_to_cart_box {
        transform: scale(1);
        display: flex;
        flex-direction: column;
        justify-content:start;
        align-items: center;
        gap: 2em;
        height: 20em;
        width: 98%;
        padding: 0;
        
    }
    .add_to_cart_button_container {
        position: relative;
        font-size: 3.9vw;
        bottom: 0;
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        
        
    }
    .price {
        
        
        padding-right: 6em;
        padding-left: 1em;
        
        
        font-size: 3em;
        width: 10em;
        font-size: 1em;

    }
    .price >p {
        font-size: 1.8em;
    }
    .add_to_cart_button {
        
        width: 12em;
       
        border: none;
         
        
        
    }
    .add_to_cart_button > p {
        
        cursor: pointer;
        
        
    }


    
}
@media (max-width: 470px) {
    .pic_container > img {
        width: 4.5em;
        height: 4.5em;
        
        }
        .variant_buttons_containers:has(> :nth-child(2)) {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        column-gap: 0.5em;
    }
}
@media (max-width: 390px) {
   
}
@media (max-width: 330px) {
    html {
        font-size: 4vw;
    }
    
}