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


*{
    font-family: "Antonio", sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    scroll-padding-top: 3rem;
}


/* Some variables for colors */
:root {
    --main-color: #346748;
    --bg-color: #fcfbf1;
    --text-color: #1b1a16;
    --container-color: #fbfaef;
}

body{
    color: var(--text-color);
    background: var(--container-color);
}

a{
    text-decoration: none;
}

img{
    width: 100%;
}

.section{
    padding: 4rem 0 2rem;
}

.container{
    width: 100%;
    max-width: 1080px;
    margin: auto;
}

header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--main-color);
    z-index: 100;
}

.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
}

#menu-icon{
    font-size: 28px;
    cursor: pointer;
    color: var(--bg-color);
    display: none;
}

.logo{
    font-size: 1.5rem;
    color: var(--bg-color);
    text-transform: uppercase;
    font-weight: 700;
}

.navbar{
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.nav-link{
    font-size: 1.025rem;
    color: var(--bg-color);
    font-weight: 700;
}

#cart-icon{
    position: relative;
    font-size: 1.6rem;
    color: var(--bg-color);
    cursor: pointer;
}

#cart-count{
    position: absolute;
    right: -10px;
    bottom: 0;
    background: var(--bg-color);
    color: var(--text-color);
    width: 18px;
    height: 18px;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home{
    position: relative;
    min-height: 740px;
    background: linear-gradient(#346748 80%, #bfb496 20%);
}

.home-img{
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    justify-content: center;
}

.home-img img{
    max-width: 450px;
    width: 100%;
}

.home-img::before{
    content: "COBUCCI";
    font-size: 22rem;
    font-weight: 900;
    text-transform: uppercase;
    position: absolute;
    text-align: center;
    top: -150px;
    color: var(--bg-color);
    z-index: -1;
}

.heading{
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
}

.product-container{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.product-img{
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.prduct-title{
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    margin: 0.8rem 0 0.5rem;
}

.product-price{
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--main-color);
}

.add-to-cart{
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    padding: 10px;
    margin-top: 0.6rem;
    cursor: pointer;
}

.cart-container{
    margin-top: 100px !important;
}

.back-homepage{
    display: flex;
    align-items: center;
}

.back-homepage i{
    font-size: 24px;
    color: var(--text-color);
}

.back-homepage span{
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.cart-s-title{
    font-size: 3.5rem;
    text-transform: uppercase;
    margin: 1.5rem 0;
}

.cart-box{
    display: grid;
    grid-template-columns: 80% 20%;
    gap: 1rem;
}

#cartItems{
    display: grid;
    row-gap: 1rem;
}

.cart-item{
    display: grid;
    grid-template-columns: 0.5fr 1fr 0.5fr 0.5fr;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #dbdbdb;
    padding-bottom: 10px;
}

.cart-item img{
    width: 80px;
    height: 100px;
    object-fit: cover;
    object-position: center;
}

.cart-title-price{
    display: grid;
    gap: 8px;
}

.cart-item-title{
    font-size: 1.3rem;
    font-weight: 600;
}

.cart-item-price{
    font-size: 1.4rem;
    font-weight: 700;
}

.quantity-controls{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.quantity-controls button{
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--text-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #4a5568;
}

.quantity-controls i{
    color: var(--text-color);
    font-size: 17px;
}

.quantity-controls button:hover{
    background: #f7fafc;
    border-color: #cbd5e0;
}

.quantity-controls input{
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 500;
    color: var(--text-color);
    background: transparent;
    font-size: 0.95rem;
}

.remove-from-cart i{
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

.cart-t{
    display: flex;
    flex-direction: column;
}

#cartTotal{
    font-size: 2rem;
    font-weight: 600;
}

.checkout-btn{
    margin-top: 2rem;
    background: var(--main-color);
    color: var(--bg-color);
    text-align: center;
    padding: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    max-width: 150px;
}


.toast-container{
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast{
    background: var(--main-color);
    color: var(--bg-color);
    padding: 15px 20px ;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    max-width: 300px;
    word-wrap: break-word;
    opacity: 0;
    transform: translateX( 100%);
    transition: all 0.3s ease;
}


.toast-show{
    opacity: 1;
    transform: translateX(0);
}


.footer{
    background: #181715;
    padding: 60px 0;
    margin-top: 60px;
}

.footer-c{
    display: grid;
    grid-template-columns: 60% 20% 20%;
    gap: 1rem;
}

.footer-box{
    display: flex;
    flex-direction: column;
}

.footer-box h2{
    font-size: 8rem;
    text-transform: uppercase;
    color: var(--bg-color);
    margin-bottom: 1rem;
}

.social{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social i{
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 18px;
    padding: 10px;
    border-radius: 50%;
}

/* Esconde a barra de rolagem no Chrome, Edge e Safari */
body::-webkit-scrollbar {
    display: none;
}

.footer-box h3 {
    font-size: 1.7rem; /* maior que os links */
    color: #4be38ac0;    /* verde claro e vibrante */
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 0.7rem; /* espaço abaixo do título */
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-box > h3 {
    margin-top: 0;
}

.footer-box a{
    color: var(--bg-color);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.copyright{
    color: var(--bg-color);
    text-transform: uppercase;
    padding-top: 30px;
}


/* Responsividade */
@media (max-width: 1200px){
    .container{
        width: 90%;
        margin: 0 auto;
    }
    .home-img::before{
        font-size: 15rem;
        top: -120px;
        
    }
}

@media (max-width: 910px){
    .nav{
        padding: 18px 0;
    }
    .home-img::before{
        font-size: 11rem;
        top: -85px;
    }
    .product-container{
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 720px){
    .home{
        min-height: 640px;
    }
    .home-img img{
        max-width: 400px;
    }
    .home-img::before{
        font-size: 7rem;
        letter-spacing: 12px;
        top: -60px;
    }
    .footer-box h2{
        font-size: 6rem;
    }
    .cart-box{
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-c{
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 550px){
    #menu-icon{
        display: initial;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        row-gap: 0.5rem;
        text-align: center;
        padding: 15px 0;
        box-shadow: 0 20px 20px rgba(15 54 55 / 20%);
        clip-path: circle(0% at 0% 0%);
        transition: 0.6s;
    }
    .open-menu{
         clip-path: circle(144% at 0% 0%);
    }

    .nav-link{
        display: block;
        padding: 15px;
    }

    .home-img::before{
        font-size: 5rem;
        top: -50px;
    }
    .heading{
        font-size: 2.5rem;       
    }

    .product-container{
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 420px){
    .home{
        min-height: 580px;
    }
    .product-container{
        grid-template-columns: 1fr;
    }
    .quantity-controls input{
        width: 30px;
    }
}

@media (max-width: 405px){
    .home-img img{
        max-width: 350px;
    }
    .home-img::before{
        font-size: 4rem;
        top: -40px;
    }
    .footer-box h2{
        font-size: 5rem;
    }
}