/**
 * Pipa Product Display — frontend styling
 *
 * Styled bij `pipa-product-display.php` (Stap 6 frontend).
 * Wordt enkel ingeladen op single-product pagina's.
 *
 * Twee blokken:
 *   1. .pipa-highlights-cards  — 2×2 grid bovenaan (vóór add-to-cart)
 *   2. .pipa-specs-block       — striped specs tabel (boven de tabs)
 *
 * Kleurenpalet sluit aan bij Pipa Tuinshop (groen accent, neutrale grijzen).
 * Mobile-first met breakpoint op 600px.
 */

/* ============================================================
   1. HIGHLIGHTS CARDS — 2×2 grid
   ============================================================ */
.pipa-highlights-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 0 22px 0;
    width: 100%;
}

.pipa-highlight-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f7f8f6;
    border: 1px solid #e3e6e0;
    border-radius: 8px;
    transition: border-color .15s ease, background .15s ease;
}

.pipa-highlight-card:hover {
    background: #f1f4ee;
    border-color: #cdd5c2;
}

.pipa-highlight-card-icon.dashicons {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    font-size: 32px;
    line-height: 32px;
    color: #5a7a3e; /* tuingroen */
}

.pipa-highlight-card-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.pipa-highlight-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b6f66;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
}

.pipa-highlight-card-value {
    font-size: 15px;
    font-weight: 600;
    color: #2d3026;
    word-break: break-word;
}

/* ============================================================
   2. SPECS BLOCK — striped tabel
   ============================================================ */
.pipa-specs-block {
    margin: 18px 0 26px 0;
    width: 100%;
}

.pipa-specs-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #5a7a3e;
    color: #2d3026;
}

.pipa-specs-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    font-size: 14px;
    color: #2d3026;
    table-layout: fixed;
}

.pipa-specs-table tr {
    border: none;
}

.pipa-specs-table .pipa-row-even {
    background: #f7f8f6;
}

.pipa-specs-table .pipa-row-odd {
    background: #ffffff;
}

.pipa-specs-table td {
    padding: 10px 12px;
    vertical-align: middle;
    border: none;
    line-height: 1.4;
}

.pipa-spec-label {
    width: 45%;
    font-weight: 500;
    color: #4a4e44;
    white-space: normal;
}

.pipa-spec-icon.dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
    color: #5a7a3e;
    margin-right: 8px;
    vertical-align: middle;
}

.pipa-spec-value {
    width: 55%;
    font-weight: 600;
    color: #2d3026;
    word-break: break-word;
}

/* ============================================================
   3. RESPONSIVE — mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
    .pipa-highlights-cards {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 18px;
    }

    .pipa-highlight-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .pipa-highlight-card-icon.dashicons {
        width: 28px;
        height: 28px;
        font-size: 28px;
        line-height: 28px;
    }

    .pipa-highlight-card-label {
        font-size: 11px;
    }

    .pipa-highlight-card-value {
        font-size: 14px;
    }

    .pipa-specs-title {
        font-size: 16px;
    }

    .pipa-specs-table {
        font-size: 13px;
    }

    .pipa-specs-table td {
        padding: 8px 10px;
    }

    .pipa-spec-label {
        width: 50%;
    }

    .pipa-spec-value {
        width: 50%;
    }

    .pipa-spec-icon.dashicons {
        width: 16px;
        height: 16px;
        font-size: 16px;
        line-height: 16px;
        margin-right: 6px;
    }
}

/* ============================================================
   4. WOODMART OVERRIDES — voorkom dat thema-stijlen onze tabel breken
   ============================================================ */
.summary-inner .pipa-highlights-cards,
.product-content .pipa-highlights-cards,
.summary-inner .pipa-specs-block,
.product-content .pipa-specs-block {
    clear: both;
}

.pipa-specs-table,
.pipa-specs-table tbody,
.pipa-specs-table tr,
.pipa-specs-table td {
    box-shadow: none;
}

/* ============================================================
   5. PER-STUK PRIJS-SUFFIX (composite quick-option producten)
   ============================================================ */
.pipa-per-stuk-suffix {
    font-size: 0.85em;
    font-weight: 500;
    color: #6b6f66;
    margin-left: 4px;
}
