* {
    box-sizing: border-box;
}

body {
    margin: 0px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

nav {
    display: flex;
    justify-content: space-between;
    height: 134px;
    padding: 5px 10px;
    background-color: rgb(0, 81, 44);
    @media (min-width: 576px) {
        height: 90px;
    }
}

nav img {
    width: 100%;
}

nav ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-direction: column;
    @media (min-width: 576px) {
        flex-direction: row; 
        align-items: center;
        margin: 0 20px;
    }
}


nav ul a,
footer ul a {
    text-decoration: none;
    color: rgb(38, 55, 70);
    padding: 5px 10px;
    transition: color 0.3s ease;
    background-color: white;
    font-size: 14px;
    border-radius: 2px;
    margin: 4px 0px;
    width: 88px;
    display: block;
    @media (min-width: 576px) {
        width: initial;
        margin: 4px 10px;
    }
}

nav ul a {
    text-align: center;
}

nav ul a:hover,
footer ul a:hover  {
    color: rgb(0, 78, 82);
    text-decoration: underline;
    text-underline-offset: 3px;
}

nav ul a.active,
footer ul a.active  {
    text-decoration: underline;
    text-underline-offset: 3px;
}

main {
    margin: 1rem;
}

h2 {
    padding-bottom: 34px;
}

h2 + p {
    width: 88%;
    text-align: center;
    margin: 0px auto 80px auto;
    max-width: 500px;
    font-weight: 500;
    font-size: clamp(19px, 26px, 2vw);
}

.header {
    background-color: rgb(0, 78, 82);
    height: 35px;
    padding: 5px 10px;
    position: relative;
    z-index: 1;
}

.header-heading {
    margin: 0px;
    color: rgb(0, 78, 82);
    font-size: 17px;
    position: relative;
    z-index: 3;
    font-weight: 600;
}

.header-presentation {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    bottom: 7px;
    width: 167px;
    background-color: white;
    border-bottom-right-radius: 50rem;
}

.header-presentation.small {
    width: 134px;
}

footer {
    background-color: rgb(0, 78, 82);
    height: 134px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px 34px 10px;
    @media (min-width: 576px) {
        justify-content: space-around;
    }
}

footer ul {
    display: flex;
    flex-direction: column;
    height: 88px;
    justify-content: space-between;
    list-style-type: none;
    padding: 0px;
}

footer div p {
    margin: 0px;
}

.products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1.5rem;
    margin: auto;
    width: 83%;
    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    @media (min-width: 1200px) {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

.products-item {
    border: 1px solid rgb(0, 78, 82);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.products-item-image-container {
    overflow: hidden;
    height: 400px;
    border-bottom: 1px solid rgb(0, 78, 82);
    @media (min-width: 576px) {
        height: 480px;
    }
    @media (min-width: 768px) {
        height: 367px;
    }
    @media (min-width: 1200px) {
        height: 400px;
    }
}

.products-item-details-container  {
    display: flex;
    flex-direction: column;
    color: white;
    background-color: rgb(0, 78, 82);
    justify-content: space-evenly;
    flex-grow: 1;
}

.products-item-image-container img {
    will-change: transform;
    transition: transform 0.3s ease;
    transform: scale(1);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    object-position: center;
    width: 100%;
    max-height: 100%;
}

.products-item:hover .products-item-image-container img {
    transform: scale(1.05);
}

.products-item:hover  span[aria-label="Buy"]  {
    transform: translateX(-8px);
}

.products-item-details-container h3 {
    text-align: center;
}

.products-item-details-container h3 + p {
    padding: 0px;
    margin: 0px 8%;
}

.products-item-details-container p {
    padding: 20px;
    margin: 8px 0px 0px 0px;
}

.products-item-details-container div {
    background-color: rgb(0, 81, 44);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0px;
    margin: 8px 0px 0px 0px;
}

.products-item-details-container div span[aria-label="Buy"] {
    margin: 0px 34px 0px 0px;
    font-size: 22px;
    font-family: 600;
    display: block;
    border: 1px solid white;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(0px);
    transition: transform 0.3s ease;
    will-change: transfrom;
}

.cta {
    width: 74%;
    margin: 80px auto;
    background-color: rgb(0, 78, 82);
    padding: 0px 0px 34px 0px;
    display: block;
    text-decoration: none;
}

.cta p {
    width: 88%;
    margin: auto;
    color: white;
    padding: 20px;
}

.cta h3,
.cta h4 {
    transition: transform 0.3s ease;
    transform: translateX(0px);
    will-change: transform;
}

.cta:hover h3,
.cta:hover h4 {
    transform: translateX(8px);
}