:root {
    --main-black: rgb(28, 28, 28);
    --whitesmoke: #f5f5f5;
    --green: rgb(127, 173, 57);
    --dark-green: rgb(102, 139, 45);
    --grey: #6F6F6F; 
}

body {
    position: relative;
}

#overlay01, #overlay02 {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: var(--main-black);
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: all 0.4s ease-in;
}

header {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 2rem;
}

.header__logo {
    grid-column: 1 / 3;
}

.header__menuBtn {
    grid-column: 4;
    padding: 0 1rem;
    justify-self: right;
    font-size: 2.2rem;
    border: 0.1rem solid var(--main-black);
    border-radius: 0.5rem;
    transform-origin: center;
    transition-duration: 0.3s;
}

.header__menuBtn:hover {
    background-color: rgba(28, 28, 28, 0.1);
}

.header__menu {
    display: none;
    justify-content: space-evenly;
    font-size: 1.8rem;
}

.header__menu li {
    transition: all 0.2s;
}

.header__menu li:hover {
    color: var(--green);
}

.header__shop {
    grid-column: 1 / 5;
    justify-self: center;
}

.header__shop, .collapsibleMenu__shop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.4;
}

.header__shop button, .collapsibleMenu__shop button {
    position: relative;
}

.header__shop button i, .collapsibleMenu__shop button i {
    font-size: 2rem;
}

.header__shop button span, .collapsibleMenu__shop button span {
    position: absolute;
    top: 0;
    right: -1.2rem;
    width: 1.6rem;
    height: 1.6rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6rem;
    color: white;
    background: #7fad39;
    border-radius: 50%;
}

.header__shopContainer--likes, .header__shopContainer--cart {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    top: 16rem;
    width: 28rem;
    max-height: 0;
    background-color: white;
    opacity: 0;
    overflow-y: scroll;
    z-index: 2;
    transition: all 0.4s ease-out;
}

.header__shopContainer--likes table, .header__shopContainer--cart table {
    width: 100%;
    text-align: left;
}

.header__shopContainer--likes th, .header__shopContainer--likes td, .header__shopContainer--cart th, .header__shopContainer--cart td {
    padding: 1.2rem 0.7rem;
    vertical-align:middle;
    border-bottom: 0.1rem solid rgba(111, 111, 111, 0.3);
}

.header__shopContainer--cart span {
    font-weight: 700;
}

.header__shopContainer--likes .deleteProduct, .header__shopContainer--cart .deleteProduct{
    color: red;
    font-size: 2rem;
    font-weight: 700;
}

.header__shopContainer--likes button, .header__shopContainer--cart button {
    width: 100%;
    margin-top: 2rem;
    padding: 0.3rem 2.5rem;
    text-align: center;
    font-weight: 700;
    color: white;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    background-color: var(--green);
    transition: all 0.3s ease-in;
}

.header__shopContainer--likes button:hover, .header__shopContainer--cart button:hover {
    background-color: var(--dark-green);
}

.header #totalPrice01, .collapsibleMenu__shop #totalPrice02 {
    font-weight: 700;
}

.collapsibleMenu {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 30rem;
    padding: 5rem 3rem;
    z-index: 2;
    background-color: white;
    overflow-y: scroll;
    transition-duration: 0.4s;
}

.hidden {
    left: -100%;
    opacity: 50%;
}

.visible {
    left: 0;
    opacity: 100%;
}

.collapsibleMenu__head {
    padding-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsibleMenu__head button {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: end;
    align-items: center;
    font-size: 3rem;
    color: var(--green);
    transition-duration: 0.2s;
}

.collapsibleMenu__head button:hover {
    font-size: 3.5rem;
}

.collapsibleMenu__shop {
    padding-bottom: 2rem;
}

.collapsibleMenu__nav {
    padding-bottom: 3rem;
}

.collapsibleMenu__nav #pagesMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.collapsibleMenu__nav li {
    padding: 1rem 0;
    font-weight: 600;
    border-bottom: 0.1rem solid rgba(28, 28, 28, 0.1);
}

.collapsibleMenu__nav li i {
    padding-left: 0.8rem;
    font-size: 1.4rem;
    vertical-align: middle;
}

.collapsibleMenu__nav a:hover {
    color: var(--green);
    transition-duration: .3s;
}

.collapsibleMenu__redes {
    padding-bottom: 3rem;
    display: flex;
    gap: 2rem;
}

.collapsibleMenu__redes li {
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
}

.collapsibleMenu__redes a:hover {
    color: var(--green);
    font-size: 2rem;
    transition-duration: .3s;
}

.collapsibleMenu__contact div {
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

main {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

main .hero {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 3rem;
}

main .hero__departamentsMenu {
    grid-column: 1 / 13;
}

main .hero__departamentsMenu button {
    position: relative;
    width: 100%;
    padding: 0.8rem 2.5rem;
    text-align: start;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    background-color: var(--green);
}

main .hero__departamentsMenu button:hover {
    background-color: var(--dark-green);
    transition-duration: 0.4s;
}

main .hero__departamentsMenu button .fa-bars {
    padding-right: 1.5rem;
}

main .hero__departamentsMenu button #departamentsArrow {
    position: absolute;
    top: calc(50% - 13px/2);
    right: 2.5rem;
    font-size: 1.4rem;
}

main .hero__departamentsMenu ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border: 0.1rem solid rgba(28, 28, 28, 0.1);
    border-top: none;
}

main .hero__departamentsMenu ul li {
    padding: 1rem 3rem;
}

main .hero__departamentsMenu ul li:hover {
    background-color: rgba(28, 28, 28, 0.1);
}

main .hero__principal {
    grid-column: 1 / 13;
}

main .hero__principalSearch, footer .footerInfo__subscribe form {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
}

main .hero__principalSearch input, footer .footerInfo__subscribe form input {
    height: 5rem;
    padding-left: 2rem;
    text-align: left;
    background-color: white;
    border: 0.1rem solid rgba(28, 28, 28, 0.1);
    flex-grow: 1;
}

main .hero__principalSearch button, footer .footerInfo__subscribe form button {
    height: 5rem;
    padding: 0 3rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    background-color: var(--green);
}

main .hero__principalSearch button:hover, footer .footerInfo__subscribe form button:hover {
    background-color: var(--dark-green);
    transition-duration: 0.4s;
}

main .hero__principalSupport {
    padding: 3rem 0;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

main .hero__principalSupport .fa-phone {
    padding: 1.5rem;
    border-radius: 50%;
    color: var(--green);
    background-color: var(--whitesmoke);
}

main .hero__principalSupport p {
    font-size: 1.8rem;
    font-weight: 700;
}

main .hero__principalSupport span {
    font-size: 1.4rem;
    color: var(--grey);
}

main .hero__principalImage {
    grid-column: 1 / 13;
    height: 43rem;
    background-image: url("../img/hero/banner.jpg");
    background-size: cover;
    background-position: top center;
    padding-left: 5rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

main .hero__principalImage span {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: var(--green);
}

main .hero__principalImage h2 {
    font-size: 4.6rem;
    font-weight: 900;
    line-height: 5.2rem;
}

main .hero__principalImage p {
    margin-bottom: 1.5rem;
    color: var(--grey);
}

main .hero__principalImage button {
    display: inline-block;
    padding: 1rem 2.8rem;
    width: fit-content;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background-color: var(--green);
    letter-spacing: 0.2rem;
}

main .hero__principalImage button:hover {
    background-color: var(--dark-green);
    transition-duration: 0.4s;
}

main .featured {
    padding: 5rem 0 0;
}

main .featured__title {
    position: relative;
    text-align: center;
    font-size: 3.6rem;
    font-weight: 800;
}

main .featured__title::after{
    content: "";
    position: absolute;
    bottom: -2.7rem;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 8rem;
    height: 0.4rem;
    background-color: var(--green);
}

main .featured__categories {
    padding: 5rem 0 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 3rem;
    row-gap: 1rem;
    font-size: 1.8rem;
    
}

main .featured__categories button:hover {
    color: var(--green);
    transition: color 0.3s;
}

.categorieFilterActive {
    color: var(--green);
    font-weight: 600;
    border-bottom: 0.1rem solid var(--green);
}

main .featured__products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 3rem;
    row-gap: 3rem;
}

main .featured__products .productCard__image {
    position: relative;
    height: 27rem;
    width: 28rem;
    background-color: #f2f6fb;
    overflow: hidden;
}

main .featured__products .productCard__image img {
    object-fit: cover;
    margin: 1rem auto 0;
}

main .featured__products .productCard__image:hover > ul {
    bottom: 1.5rem;
}

main .featured__products .productCard__image ul {
    position: absolute;
    bottom: -5rem;
    right: calc(50% - 5rem);
    display: flex;
    gap: 2rem;
    transition-duration: 0.5s;
}

main .featured__products .productCard__image li {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    background-color: white;
    border: 0.1rem solid #EBEBEB;
    border-radius: 50%;
    cursor: pointer;
    transition-duration: 0.4s;
}

main .featured__products .productCard__image li:hover {
    color: white;
    background-color: var(--green);
    animation: rotation 0.4s ease-in;
}

@keyframes rotation {
    100% {transform: rotate(360deg);}
}

main .featured__products .productCard__info {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

main .featured__products .productCard__info span {
    font-size: 1.8rem;
    font-weight: 900;
}

#snackbar {
    visibility: hidden;
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 3rem;
    min-width: 28rem;
    text-align: center;
    font-size: 1.8rem;
    color: white;
    background-color: #333;
    border-radius: 0.2rem;
    z-index: 1;
}

#snackbar.showSnackbar {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.51s 1.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 3rem; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 3rem; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

footer {
    width: 100%;
    background-color: #F3F6FA;
}

footer .footerContainer {
    margin: 0 auto;
    padding: 5rem 2rem;
}

footer h3 {
    padding-bottom: 1.5rem;
    font-weight: 800;
}

footer .footerInfo {
    width: 100%;
    padding-bottom: 4rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 4rem;
}

footer .footerInfo__contact {
    grid-column: 1 / 13;
}

footer .footerInfo__contact div {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer .footerInfo__links {
    grid-column: 1 / 13;
}

footer .footerInfo__links ul {
    width: 49%;
    display: inline-block;
    font-size: 1.4rem;
}

footer .footerInfo__links li {
    padding-bottom: 0.5rem;
}

footer .footerInfo__subscribe {
    grid-column: 1 / 13;
}

footer .footerInfo__subscribe p {
    padding-bottom: 2rem;
    font-size: 1.4rem;
}

footer .footerInfo__subscribe .errorMessage {
    padding-top: 1rem;
    font-size: 1.6rem;
    color: red;
    text-align: center;
}

footer .footerInfo__subscribe .sendMessage {
    padding-top: 1rem;
    font-size: 1.6rem;
    color: var(--dark-green);
    text-align: center;
}

.disableBtn {
    cursor: not-allowed;
    background-color: var(--dark-green) !important;
    opacity: 50%;
}

footer .footerInfo__subscribe ul {
    padding-top: 2rem;
    display: flex;
    gap: 2rem;
}

footer .footerInfo__subscribe li {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: 0.1rem solid #EBEBEB;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease-in
}

footer .footerInfo__subscribe li:hover {
    font-size: 1.8rem;
    color: white;
    background-color: var(--green);
}

footer .footer__copyright {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 0.1rem solid #EBEBEB;
}

footer .footer__copyright p {
    padding-bottom: 2rem;
    color:var(--grey);
}