/* FEMAX – Katalogy */

.catalogs-page {
    padding-bottom: 4px;
}

.catalogs-hero {
    padding: 0;
    overflow: hidden;
}

.catalogs-hero img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.catalogs-heading {
    padding: 24px 28px 25px;
    text-align: center;
}

.catalogs-heading__line {
    width: 72px;
    height: 1px;
    margin: 0 auto 16px;
    background: #e3aa9d;
}

.catalogs-heading h1 {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.catalogs-heading p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}

.catalogs-showcase {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.catalog-tile {
    min-width: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eceef0;
    border-radius: var(--radius);
}

.catalog-tile__visual {
    min-height: 172px;
    padding: 4px 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.catalog-tile__visual img {
    display: block;
    width: 100%;
    height: 172px;
    max-width: 100%;
    object-fit: contain;
}

/* Hlavní tlačítko + PDF ikona v jednom řádku */
.catalog-tile__actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: stretch;
}

.catalog-tile__actions--single {
    grid-template-columns: 1fr;
}

.catalog-action {
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    border-radius: 6px;
    text-decoration: none;
}

.catalog-action--primary {
    position: relative;
    padding: 8px 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--femax-red-dark);
    background: #fff;
    border: 1px solid var(--femax-red);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.25;
}

.catalog-action--primary > span:first-child {
    display: block;
    width: 100%;
    text-align: center;
}

.catalog-action__arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

.catalog-action--pdf {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--femax-red-dark);
    background: #fff;
    border: 1px solid #d9dde1;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.catalog-action--pdf > span {
    min-width: 25px;
    height: 19px;
    padding: 0 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 3px;
    line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
    .catalog-action--primary:hover {
        color: #fff;
        background: var(--femax-red);
        border-color: var(--femax-red);
    }

    .catalog-action--pdf:hover {
        border-color: #e3aa9d;
    }
}

@media (max-width: 1000px) {
    .catalogs-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-tile:last-child {
        grid-column: 1 / -1;
        width: min(100%, 50%);
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .catalogs-heading {
        padding: 21px 18px 22px;
    }

    .catalogs-heading h1 {
        font-size: 1.28rem;
    }

    .catalogs-heading__line {
        width: 60px;
        margin-bottom: 14px;
    }

    .catalogs-showcase {
        padding: 14px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .catalog-tile:last-child {
        grid-column: auto;
        width: 100%;
    }

    .catalog-tile__visual {
        min-height: 150px;
    }

    .catalog-tile__visual img {
        height: 150px;
    }

    .catalog-action--primary {
        min-height: 46px;
        font-size: .86rem;
    }
}
