/* ==========================================================================
   Archiv rubriky (/rubrika/<slug>/) – šablona category.php
   Načítá se jen na archivu rubriky, za articles.css (karty, mřížka, nadpisy
   sekcí, stránkování, lišta rubrik a hlavička jsou odtud, protože je má i /clanky/).
   Tady jen „Začněte tady“ a blok nabídky.
   ========================================================================== */

/* „Začněte tady“ odsazené od seznamu jako řádky na /clanky/ */
.category-featured {
    margin-bottom: 72px;
}

/* ----- Blok nabídky (za 6. kartou) ----- */

.category-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 32px;
    margin: 40px 0;
    padding: 32px 40px;
    background: #fbf6e4;
    border: 1px solid #efe2b4;
    border-radius: 12px;
}

.category-offer-title {
    margin: 0 0 6px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.category-offer-desc {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.category-offer-products {
    display: flex;
    gap: 12px;
}

.category-offer-products img {
    display: block;
    width: 96px;
    height: 96px;
    padding: 6px;
    box-sizing: border-box;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.category-offer-products:hover img {
    transform: translateY(-4px);
}

/* Modré tlačítko jako „Zjistit více“ u produktů na homepage */
.category-offer-cta {
    display: inline-block;
    padding: 16px 32px;
    background: #194383;
    color: #fff;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-offer-cta:hover,
.category-offer-cta:focus {
    background: #194383;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 67, 131, 0.3);
}

/* ----- Responzivita ----- */

@media (max-width: 1200px) {
    .category-offer {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .category-offer-cta {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .category-featured {
        margin-bottom: 56px;
    }

    .category-offer {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin: 24px 0;
        padding: 24px;
    }

    .category-offer-products {
        gap: 8px;
    }

    .category-offer-products img {
        width: calc((100% - 24px) / 4);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .category-offer-cta {
        justify-self: stretch;
        text-align: center;
    }
}
