.b2b-novelties { margin: 40px 0 0; clear: both; }
/* .b2b-novelties h2 i pro případ, že theme nadpisu přidá vlastní třídu (např. h3). */
.b2b-novelties-title,
.b2b-novelties h2 { margin: 0 0 24px; font-size: 20px; text-align: center !important; }
.b2b-novelties-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.b2b-novelties-card {
    position: relative;
    display: flex; flex-direction: column;
    text-align: center;
    padding: 16px 12px;
    background: #eeeef0;
    border-radius: 8px;
}
/* Odkaz s obrázkem + názvem roste, aby cena a tlačítko byly zarovnané dole. */
.b2b-novelties-link {
    display: flex; flex-direction: column; gap: 4px;
    flex: 1 1 auto;
    text-decoration: none; color: inherit;
}
/* Hover na názvu → červená. */
.b2b-novelties-link:hover .b2b-novelties-name { color: #e2001a !important; text-decoration: none; }

/* Obrázek: menší, vycentrovaný, jednotný čtverec (jako dlaždice v katalogu). */
.b2b-novelties-img {
    position: relative;      /* kotva pro badge .custom-label */
    display: block;
    width: 70%;
    margin: 0 auto 4px;
}
.b2b-novelties-img img {
    width: 100%; height: auto; display: block;
    aspect-ratio: 1 / 1; object-fit: contain;
}

.b2b-novelties-name { margin: 0; font-size: 16px !important; font-weight: 600; line-height: 1.3; }

/* Cena – malá, vycentrovaná, bez podtržení (přebít theme třídy z get_price_html). */
.b2b-novelties-price,
.b2b-novelties-price * {
    font-size: 15px !important; line-height: 1.3;
    text-align: center !important; text-decoration: none !important;
}
.b2b-novelties-price {
    display: block; width: 100%;
    margin: 4px 0 12px; font-weight: 600;
}
.b2b-novelties-price .price { display: block; float: none !important; }
.b2b-novelties-price strong { font-weight: 700; }
/* Přeškrtnutá původní cena zůstává přeškrtnutá (po zákazu underline výše). */
.b2b-novelties-price del,
.b2b-novelties-price-old { text-decoration: line-through !important; color: #999; margin-right: 6px; }

/* Tlačítko detailu – šedé podbarvení. Scope .b2b-novelties kvůli přebití theme .btn. */
.b2b-novelties .b2b-novelties-btn {
    align-self: center;
    margin-top: 20px !important;
    font-size: 12px !important;
    background: #adadad !important;
    color: #fff !important;
    border-color: #adadad !important;
}
.b2b-novelties .b2b-novelties-btn:hover {
    background: #999 !important;
    color: #fff !important;
    border-color: #999 !important;
}

/* Badge "Novinka" – stejný vzhled jako v katalogu, ale self-contained
   (theme product.css se na košíku nemusí načítat). */
.b2b-novelties .custom-label {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    font-size: 12px; font-weight: 600; line-height: 1;
    font-family: 'Roboto Condensed',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    color: #fff; padding: 4px 8px; border-radius: 4px;
}
.b2b-novelties .custom-label.new { background-color: #1aad1b; }

/* Desktop: 5 v řadě, 6. položku skryjeme (načítá se 6, mobil/tablet ji ukáže). */
@media (min-width: 1101px) {
    .b2b-novelties-card:nth-child(6) { display: none; }
}
@media (max-width: 1100px) {
    .b2b-novelties-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .b2b-novelties-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .b2b-novelties-title { font-size: 18px; }
    .b2b-novelties-img { width: 80%; }
}
