:root {
    --bl-primary: #df005c;         
    --bl-primary-hover: #b8004c;   
    --bl-bg-light: #f9f9f9;
    --bl-bg-active: #fdf0f5; /* Jasnoróżowe tło dla badge'a */
    --bl-border: #eaeaea;
    --bl-text-main: #333333;
    --bl-text-muted: #777777;
}


#produkty_gratis {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

#produkty_gratis * {
    box-sizing: border-box;
}

/* Nagłówek */
#produkty_gratis .h1 {
    text-align: center;
    margin: 40px 0;
    border-bottom: 2px solid var(--bl-border);
    padding-bottom: 15px;
}

#produkty_gratis .h1 h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--bl-text-main);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

/* Siatka CSS dla produktów */
#produkty_gratis .gratisy_kontener {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Pojedynczy kafelek */
.bl-gratis-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bl-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.bl-gratis-card:hover {
    border-color: var(--bl-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Zdjęcie i badge */
.bl-gratis-img {
    position: relative;
    width: 100%;
    height: 220px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--bl-border);
}

.bl-gratis-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.bl-gratis-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bl-gratis-card:hover .bl-gratis-img img {
    transform: scale(1.05);
}

.bl-gratis-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bl-bg-active);
    color: var(--bl-primary);
    border: 1px dashed var(--bl-primary);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

/* Zawartość tekstowa */
.bl-gratis-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bl-gratis-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bl-text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.bl-gratis-desc {
    font-size: 13px;
    color: var(--bl-text-muted);
    line-height: 1.5;
    margin: 0;
}

.bl-gratis-desc a {
    color: var(--bl-primary);
    text-decoration: underline;
}

/* Stopka z przyciskiem CTA */
.bl-gratis-footer {
    padding: 0 20px 20px 20px;
    margin-top: auto;
}

.bl-gratis-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    background: #333; /* Nawiązanie do bl-btn-notify / czarnego theme'u w sklepie */
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.bl-gratis-card:hover .bl-gratis-btn {
    background: var(--bl-primary);
}

.bl-gratis-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: var(--bl-bg-light);
    border: 1px dashed var(--bl-border);
    border-radius: 8px;
    color: var(--bl-text-muted);
    font-size: 15px;
}

/* Artykuł SEO na dole */
.category_article {
    background: var(--bl-bg-light);
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    color: var(--bl-text-main);
}

.category_article h2 {
    color: var(--bl-primary);
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
}

.category_article h3 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.category_article p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--bl-text-muted);
}

/* Responsywność */
@media screen and (max-width: 480px) {
    #produkty_gratis .gratisy_kontener {
        grid-template-columns: 1fr;
    }
    .category_article {
        padding: 20px;
    }
}