/* ============================
   CATALOG — GRID & TYPOGRAPHY
===============================*/

.catalog {
    padding: 90px 0 120px;
    background-color: #ffffff;
}

.catalog__container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.catalog__title {
    font-family: "Cormorant Garamond", serif;
    font-size: 64px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #222;
}

/* GRID */
.catalog__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* CARD */
.catalog__item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px;
    text-align: left;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: transform .25s ease, box-shadow .25s ease;
}

.catalog__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.07);
}

/* IMAGE */
.catalog__image-wrapper {
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 45px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalog__image {
    height: 320px;
    object-fit: contain;
    pointer-events: none;
}

/* NAME */
.catalog__name {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    margin: 22px 0 10px 0;
    font-weight: 600;
    color: #222;
}

/* DESCRIPTION */
.catalog__description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* BUTTON */
.catalog__button {
    margin-top: auto;
    padding: 12px 28px;
    width: 180px;

    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    letter-spacing: 0.02em;

    color: #222;
    background: #fff;
    border: 1px solid #222;
    border-radius: 6px;

    text-align: center;
    text-decoration: none;

    transition: .25s ease;
}

.catalog__button:hover {
    background-color: #222;
    color: #fff;
}

/* EMPTY MESSAGE */
.catalog__empty {
    text-align: center;
    font-size: 18px;
    color: #777;
}

/* === WHATSAPP FLOAT BUTTON === */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 64px;
    height: 64px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Плавное появление */
@keyframes fadeInBottom {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.whatsapp-float {
    animation: fadeInBottom 0.6s ease forwards;
}

/* Контейнер блока цены */
.catalog__price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 16px;
}

/* Старая цена — зачёркнутая */
.catalog__old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

/* Текущая цена */
.catalog__price {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

/* Значок скидки */
.catalog__discount {
    background: #ff4d4d;     /* красный маркер скидки */
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}


/* ============================
          ADAPTIVE
===============================*/

@media (max-width: 1100px) {
    .catalog__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .catalog__title {
        font-size: 48px;
        margin-bottom: 40px;
    }

    .catalog__list {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .catalog__item {
        padding: 18px;
    }

    .catalog__image {
        height: 250px;
    }

    .catalog__name {
        font-size: 28px;
    }

    .catalog__button {
        width: 50%;
    }
    
}

/* === 576px === */
@media (max-width: 576px) {

    .catalog__title {
        font-size: 42px;
        margin-bottom: 32px;
    }

    .catalog__container {
        width: 92%;
    }

    .catalog__item {
        padding: 16px;
        border-radius: 12px;
    }

    .catalog__image {
        height: 220px;
    }

    .catalog__name {
        font-size: 24px;
        margin: 18px 0 8px;
    }

    .catalog__description {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .catalog__button {
        width: 65%;
        padding: 10px 22px;
        font-size: 20px;
    }

    .catalog__price-block {
        margin: 6px 0 12px;
        gap: 8px;
    }

    .catalog__price {
        font-size: 18px;
    }

    .catalog__old-price {
        font-size: 14px;
    }

    .catalog__discount {
        font-size: 12px;
        padding: 2px 5px;
    }
}

/* === 420px === */
@media (max-width: 420px) {

    .catalog {
        padding: 60px 0 90px;
        margin-top: 70px;
    }

    .catalog__title {
        font-size: 36px;
        margin-bottom: 28px;
    }

    .catalog__image {
        height: 180px;
    }

    .catalog__name {
        font-size: 20px;
    }

    .catalog__description {
        font-size: 13px;
    }

    .catalog__button {
        width: 75%;
        font-size: 18px;
        padding: 10px 20px;
    }

    .catalog__price {
        font-size: 16px;
    }

    .catalog__old-price {
        font-size: 13px;
    }

    .catalog__discount {
        font-size: 11px;
    }

    .whatsapp-float {
        width: 58px;
        height: 58px;
        right: 18px;
        bottom: 18px;
    }
}
