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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background: #ccc;
}



/*header*/
.center {
    background-color: rgb(238, 238, 238);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 5rem;
    flex-wrap: wrap;

    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.center img {
    width: 11rem;
}


.title {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.title h1 {
    font-size: 3.5rem;
    font-family: "Cinzel Decorative";
}



/*nav*/
.nav ul {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.nav ul li {
    list-style-type: none;
}

.nav a {
    text-decoration: none;
    font-size: 3rem;
    color: black;
    text-transform: capitalize;
    border: 2px solid transparent;
    padding: 1rem 3rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav a::before,
.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease;
  border-radius: 9px;
}

.nav a::before {
  top: 0;
  left: 0;
}

.nav a::after {
  bottom: 0;
  right: 0;
}

.nav a:hover::before,
.nav a:hover::after {
  width: 100%;
}


/*plano fundo */
.wallpaper {
    background-image: url(./imagens/Wine_Stemware_Gray_background_519487_3840x2160.jpg);
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-right: 20rem;
}

.content {
    margin-bottom: 17rem;
    margin-left: auto;
    scroll-margin-top: 23rem;
    text-align: center;
    text-transform: uppercase;
}

.content h2 {
    font-size: 6rem;
    font-weight: 200;
    text-align: center;
}

.content h3 {
    font-size: 16rem;
    color: rgb(64, 64, 143);
}

.content p {
    font-size: 4.5rem;
}



/*produtos */
.line_itens {
    width: 80%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    scroll-margin-top: 20rem;

}

.produtos {
    width: 32rem;
    height: 60rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    margin-top: 5.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.text {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    text-transform: capitalize;
    font-size: 2.4rem;
    margin-top: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.no-carrinho {
  border: 3px solid #4d0202;
  box-shadow: 0 0 1rem rgba(92, 26, 27, 0.7);
}


/*preço*/
.value {
    display: flex;
    align-items: flex-start;
    font-size: 4rem;
    gap: 0.2rem;
    line-height: 1;
}

.value_r {
    font-size: 4rem;
    font-weight: 500;
}

.value_c {
    font-size: 2.4rem;
    transform: translateY(0.2rem);
}

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

.quantidade input {
    width: 10rem;
    height: 4rem;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    border: 2px solid #141313;
    border-radius: 1rem;
    background-color: #fff8f7;
    color: #5c1a1b;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantidade button {
    background-color: #5c1a1b;
    color: white;
    border: none;
    font-size: 2rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.quantidade button:hover {
    background-color: #7a2a2a;
    transform: scale(1.1);
}



/*categoria*/
.categoria {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
    gap: 2rem;
}

.select-categoria {
    background-color: #5c1a1b;
    border: 2px solid #4a1516;
    color: #ecebeb;
    padding: 1rem 3rem;
    border-radius: 1rem;
    font-size: 1.9rem;
    font-weight: 600;
    text-transform: capitalize;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(92, 26, 27, 0.4);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.select-categoria:hover,
.select-categoria:focus {
    box-shadow: 0 6px 15px rgba(92, 26, 27, 0.7);
    transform: scale(1.05);
    outline: none;
}

.fa-solid {
    font-size: 4.5rem;
    color: black;
}

.carrinho-link {
    position: relative;
}

.contador-carrinho {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 1.6rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}



/*membros*/
.line {
    border: 0;
    height: 3px;
    background-color: #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    margin: 3rem 0;
    width: 80%;
    margin: 10rem auto auto;
}

.dev img {
    width: 30rem;
    border-radius: 50%;
    border: 1px solid black;
    animation: movimento 5s ease-in-out infinite;
}

.membros {
    display: flex;
    justify-content: space-evenly;
    margin-top: 10rem;
    text-align: center;
    text-transform: capitalize;
    scroll-margin-top: 0;
}

.dev_cat {
    margin-top: 1rem;
    font-size: 2.2rem;
}

.dev_name {
    margin-top: 1rem;
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: sans-serif;
    color: #4d0202;
    text-shadow: 4px 6px 18px #000000;
}

@keyframes movimento {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2rem);
    }
}



/*footer*/
.end {
    display: flex;
    justify-content: space-evenly;
    margin-top: 10rem;
    padding: 1.6rem;
    background-color: #444;
    font-size: 3rem;
    color: white;
}

.media {
    gap: 2rem;
    display: flex;
}

.media a {
    color: white;
}



@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .center {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        text-align: center;
    }

    .title {
        flex-direction: column;
        gap: 1rem;
    }

    .title h1 {
        font-size: 2.8rem;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav a {
        font-size: 2.2rem;
        padding: 1rem 2rem;
    }

    .wallpaper {
        flex-direction: column;
        height: auto;
        padding: 4rem 2rem;
        gap: 3rem;
    }

    .line_itens {
        scroll-margin-top: 41rem;
    }

    .content {
        margin-left: auto;
        text-align: center;
        scroll-margin-top: 38rem;
        margin-top: 15rem;

    }

    .content h2 {
        font-size: 3rem;
    }

    .content h3 {
        font-size: 6rem;
        color: rgb(64, 64, 143);
    }

    .content p {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .membros {
        flex-direction: column;
        align-items: center;
        gap: 5rem;
        scroll-margin-top: 36rem;
    }

    .dev img {
        width: 20rem;
    }

    .dev_name {
        font-size: 3rem;
    }

    .dev_cat {
        font-size: 1.8rem;
    }
}

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

    .title h1 {
        font-size: 2.4rem;
    }

    .nav a {
        font-size: 2rem;
        padding: 0.8rem 1.5rem;
    }

    .line_itens {
        scroll-margin-top: 39rem;
    }

    .content {
        margin-left: auto;
        text-align: center;
        scroll-margin-top: 34rem;
        margin-top: 15rem;
    }

    .content h2 {
        font-size: 3rem;
    }

    .content h3 {
        font-size: 6rem;
        color: rgb(64, 64, 143);
    }

    .content p {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .dev img {
        width: 16rem;
    }

    .dev_name {
        font-size: 2.5rem;
    }

    .dev_cat {
        font-size: 1.6rem;
    }

    .membros {
        flex-direction: column;
        align-items: center;
        gap: 5rem;
        scroll-margin-top: 34rem;
    }
}

.produtos img {
    width: 30rem;
}