@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

body {
    margin: 0;
    padding: 0;
    background-image: url(/images/background2.jpg);
    background-size: cover;
    background-attachment: fixed;
}

.layout {
    display: flex;
    flex-direction: column;
    height: 280vh;
    position: relative;
    gap: 1em;
}

/* ---------- header ---------- */
header {
    background-color: rgba(255, 255, 255, 0.8);
    width: 70%;
    height: 3%;
    padding: 1%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-end-end-radius: 50px;
    border-end-start-radius: 50px;
    box-shadow: 0px -10px 100px 0px rgb(255, 255, 255);
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 3em;
}

.logo img {
    width: 3vw;
}

.list {
    width: 55%;
    display: flex;
    align-items: center;
}

.list ul {
    list-style: none;
    width: 25em;
    display: flex;
    justify-content: space-between;
    font-size: 1.6vw;
    font-family: "Lobster", sans-serif;
}

.list a {
    position: relative;
    /* для анимации */
}

a {
    text-decoration: none;
    color: black;
}

.basket {
    display: flex;
    align-items: center;
    position: fixed;
    right: 5%;
    cursor: pointer;
}

.basket img {
    width: 30px;
}


/* ---------- promo banner ---------- */
.promo-banner-container {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    margin-top: 2em;
    /*margin-bottom: 1.5em;*/
}

.promo-banner {
    width: 40%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

/* .promo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 16px;
    font-family: "Oswald", sans-serif;
    font-size: 0.9vw;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
} */

/* .promo-banner:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.promo-banner:hover img {
    transform: scale(1.02);
} */


/* ---------- catalog divider ---------- */
.catalog-divider-container {
    width: 70%;
    margin: 2em auto 1.5em auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.catalog-title {
    /* font-family: "Lobster", sans-serif; */
    font-size: 2vw;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* ---------- main ---------- */
main {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cards {
    width: 70%;
    height: 100%;
    display: flex;
    gap: 5rem;
    justify-content: center;
    align-items: center;
}

.card {
    background-color: rgba(255, 255, 255, 0.8);
    width: 27%;
    height: 85%;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, 0.7);
}

.card-img {
    height: 80%;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-start-start-radius: 13px;
    border-start-end-radius: 13px;
    transition: 0.5s;
}

.buy-info {
    height: 20%;
    /* position: relative; */
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.info-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buy-info p {
    /* position: absolute; */
    /* left: 5%; */
    margin: 0;
    font-size: 1.3vw;
    font-family: "Oswald", sans-serif;
    font-weight: 350;
}

.button-buy {
    background-color: black;
    color: white;
    width: 33%;
    height: 60%;
    /* position: absolute;
    right: 5%; */
    display: grid;
    place-items: center;
    border-radius: 50px;
    font-size: 1vw;
    transition: 0.3s;
    border: 0;
    cursor: pointer;
}

/* ---------- footer ---------- */
footer {
    background-color: rgba(255, 255, 255, 0.8);
    width: 70%;
    height: 4vw;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-start-start-radius: 30px;
    border-start-end-radius: 30px;
    box-shadow: 0px 15px 100px 0px rgb(255, 255, 255);
}

.contacts {
    width: 50%;
    display: flex;
    justify-content: space-around;
    font-family: "Lobster", sans-serif;
    font-size: 1.1vw;
    position: fixed;
    left: 5vh;
}

/* ---------- Animation ---------- */
@media (min-width: 768px) {
    .card-img img:hover {
        transform: scale(1.1);
    }

    .button-buy:hover {
        background-color: rgb(49, 49, 49);
    }

    .list a:before {
        content: '';
        width: 100%;
        height: 1.5px;
        background-color: black;
        position: absolute;
        bottom: -4px;
        transform: scaleX(0);
        transition: transform 0.25s;
    }

    .list a:hover:before {
        transform: scaleX(1);
        transition: transform 0.25s;
    }
}


/* ---------- media ---------- */
@media (max-width: 768px) {

    /* ----- header ----- */
    header {
        width: 90%;
        height: auto;
        /* padding: 8px 0; */
    }

    .logo img {
        width: 10vw;
    }

    .list ul {
        font-size: 5vw;
        width: auto;
        gap: 7px;
        flex-direction: column;
    }

    .basket img {
        width: 8vw;
        margin-right: 1em;
    }

    /* ----- promo banner ----- */
    .promo-banner-container {
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .promo-banner {
        width: 90%;
        border-radius: 12px;
    }

    .promo-badge {
        font-size: 3vw;
        top: 10px;
        left: 10px;
        padding: 4px 10px;
    }


    /* ----- catalog divider ----- */
    .catalog-divider-container {
        width: 90%;
        margin: 1.5em auto 0.5em auto;
        gap: 10px;
    }

    .catalog-title {
        font-size: 6vw;
    }

    /* ----- main ----- */
    .cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .card {
        width: 100%;
    }

    .buy-info p {
        font-size: 2.5vh;
        font-weight: 350;
    }

    .button-buy {
        font-size: 1.8vh;
        font-weight: 550;
    }

    /* ----- footer ----- */
    footer {
        width: 90%;
        height: 5%;
    }

    .contacts {
        width: 90%;
        height: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        font-size: 1.8vh;
    }

    .contacts p {
        margin: 0;
    }
}