/* Blog Products Shortcode Cards - Condensed */

/* --- Common --- */
.bp-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    transition: box-shadow 0.25s ease;
}
.bp-card:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
}
.bp-card a {
    text-decoration: none;
}
.bp-card img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.bp-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 6px;
    padding: 0 !important;
    border: none !important;
}
.bp-card-title a {
    color: #1a1a2e;
}
.bp-card-title a:hover {
    color: #DB1221;
}
.bp-card-desc {
    font-family: 'PT Serif', serif;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}
.bp-card-desc p {
    margin: 0 0 4px;
}
.bp-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.bp-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #DB1221;
}
.bp-old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}
.bp-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #DB1221;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
    transition: background 0.2s;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.bp-btn:hover {
    background: #a00e1a;
}

/* IVA label */
.bp-card-price-row::after {
    content: "IVA incl.";
    font-size: 0.7rem;
    color: #999;
    font-weight: 400;
}

/* === Full Card (horizontal, compact) === */
.bp-card-full {
    display: flex;
    align-items: center;
}
.bp-card-full .bp-card-image {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fafafa;
}
.bp-card-full .bp-card-image img {
    width: 150px;
    height: 150px;
}
.bp-card-full .bp-card-body {
    flex: 1;
    padding: 15px 20px;
}

/* === Comparison Card (with features table - auto for >100€) === */
.bp-card-comparison {
    display: flex;
    align-items: flex-start;
}
.bp-card-comparison .bp-card-image {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fafafa;
    align-self: stretch;
}
.bp-card-comparison .bp-card-image img {
    width: 170px;
    height: 170px;
}
.bp-card-comparison .bp-card-body {
    flex: 1;
    padding: 15px 20px;
}

/* Features table */
.bp-features-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 0.8rem;
}
.bp-features-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.bp-features-table tr:last-child {
    border-bottom: none;
}
.bp-features-table td {
    padding: 5px 8px;
    vertical-align: top;
}
.bp-feat-name {
    font-weight: 600;
    color: #333;
    width: 40%;
    background: #f9f9f9;
}
.bp-feat-value {
    color: #555;
}

/* === Compact Card (inline) === */
.bp-card-compact {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 12px;
}
.bp-compact-image {
    flex: 0 0 60px;
}
.bp-compact-image img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
}
.bp-compact-info {
    flex: 1;
    min-width: 0;
}
.bp-compact-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bp-compact-name:hover {
    color: #DB1221;
}
.bp-compact-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.bp-compact-price .bp-price {
    font-size: 1rem;
}
.bp-compact-price .bp-old-price {
    font-size: 0.8rem;
}
.bp-btn-compact {
    flex-shrink: 0;
    padding: 6px 16px;
    font-size: 0.78rem;
}
/* No IVA label on compact */
.bp-card-compact .bp-compact-price::after {
    display: none;
}

/* === Grid (multiple products) === */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}
.bp-card-grid {
    display: flex;
    flex-direction: column;
    margin: 0;
}
.bp-grid-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fafafa;
}
.bp-grid-image img {
    width: 160px;
    height: 160px;
}
.bp-grid-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bp-grid-body .bp-card-title {
    font-size: 0.9rem;
}
.bp-grid-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 8px;
    flex: 1;
}
.bp-grid-body .bp-btn {
    align-self: flex-start;
    padding: 6px 16px;
    font-size: 0.78rem;
}

/* === Responsive === */
@media (max-width: 991px) {
    .bp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .bp-card-full,
    .bp-card-comparison {
        flex-direction: column;
    }
    .bp-card-full .bp-card-image,
    .bp-card-comparison .bp-card-image {
        flex: none;
        width: 100%;
        padding: 15px;
    }
    .bp-card-full .bp-card-image img,
    .bp-card-comparison .bp-card-image img {
        width: 140px;
        height: 140px;
    }
    .bp-grid {
        grid-template-columns: 1fr;
    }
    .bp-card-compact {
        flex-wrap: wrap;
    }
    .bp-compact-name {
        white-space: normal;
    }
}
