/*
 * 4J product descriptions – sdílené styly pro .p4j-desc (všechny jazyky)
 * Načítá se v Záhlaví.
 */

/* --- Základ --- */
.p4j-desc {
    --p4j-accent: #b3262d;
    --p4j-line: #e3e1dc;
    --p4j-bg: #f6f5f2;
    font-size: 15px;
    line-height: 1.55;
    color: #222;
}

.p4j-desc p {
    margin: 0 0 12px;
}

/* --- Odrážkový seznam --- */
.p4j-desc ul {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.p4j-desc li {
    position: relative;
    padding: 4px 0 4px 18px;
    border-bottom: 1px solid var(--p4j-line);
}

.p4j-desc li:last-child {
    border-bottom: 0;
}

.p4j-desc li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--p4j-accent);
}

/* --- Tabulky --- */
.p4j-desc .p4j-table-wrap {
    overflow-x: auto;
    margin: 0 0 12px;
}

.p4j-desc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 400px;
}

.p4j-desc caption {
    text-align: left;
    font-weight: 700;
    padding: 0 0 6px;
}

.p4j-desc th,
.p4j-desc td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid var(--p4j-line);
}

.p4j-desc thead th {
    background: var(--p4j-bg);
    border-bottom: 2px solid var(--p4j-accent);
    font-weight: 700;
}

.p4j-desc tbody th {
    font-weight: 700;
    white-space: nowrap;
}

/* --- Poznámka --- */
.p4j-desc .p4j-note {
    font-size: 13px;
    color: #555;
}

/* --- Mobil --- */
@media (max-width: 600px) {
    .p4j-desc {
        font-size: 14px;
    }

    .p4j-desc th,
    .p4j-desc td {
        padding: 6px 8px;
    }
}

/* --- Zvýrazněný box s fajfkami (.p4j-highlight) --- */
.p4j-desc .p4j-highlight {
    margin: 0 0 14px;
    padding: 12px 16px;
    border: 1px solid #f0c9cb;
    border-left: 5px solid var(--p4j-accent);
    border-radius: 6px;
    background: #fdf3f3;
}

.p4j-desc .p4j-highlight ul {
    margin: 0;
}

.p4j-desc .p4j-highlight li {
    border-bottom: 0;
    padding: 4px 0 4px 26px;
    font-weight: 600;
}

.p4j-desc .p4j-highlight li::before {
    content: "✓";
    top: 3px;
    left: 0;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: var(--p4j-accent);
    font-size: 17px;
    font-weight: 700;
}

/* --- Číslované kroky (ol.p4j-steps) --- */
.p4j-desc ol.p4j-steps {
    counter-reset: p4js;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.p4j-desc .p4j-steps li {
    counter-increment: p4js;
    padding: 6px 0 6px 32px;
}

.p4j-desc .p4j-steps li::before {
    content: counter(p4js);
    top: 6px;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--p4j-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

/* --- Barevné vzorky (ul.p4j-colors, barva přes --c) --- */
.p4j-desc ul.p4j-colors {
    margin: 0 0 6px;
}

.p4j-desc .p4j-colors li {
    display: inline-block;
    border: 0;
    padding: 2px 16px 2px 20px;
    cursor: default;
}

.p4j-desc .p4j-colors li::before {
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
