.wp-block-wwpgb-product-card {
    width: 100%;
}

.wwpgb-card {
    display: grid;
    grid-template-columns: minmax(200px, 40%) minmax(0, 1fr);
    gap: 2rem;
    border: 1px solid #dcdfe4;
    border-radius: 10px;
    padding: 1.5rem;
    background: #ffffff;
}

/* ── Image column ── */

.wwpgb-card__media {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wwpgb-card__media > a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f6f7;
}

.wwpgb-card__media img {
    display: block;
    width: 100%;
    height: auto;
}

.wwpgb-card__thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wwpgb-card__thumb {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.wwpgb-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wwpgb-card__placeholder {
    display: grid;
    place-items: center;
    min-height: 120px;
    color: #666;
    font-size: 0.875rem;
}

/* ── Content column ── */

.wwpgb-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wwpgb-card__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: #1a1a1a;
}

.wwpgb-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    font-style: italic;
}

.wwpgb-card__price del {
    color: #999;
    font-weight: 400;
}

/* Hide stock/availability injected inside price by WC filters */
.wwpgb-card__price .stock,
.wwpgb-card__price .availability {
    display: none;
}

.wwpgb-card__price ins {
    text-decoration: none;
}

.wwpgb-card__excerpt {
    margin: 0;
    color: #41454a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Stock status (uses WooCommerce standard .stock classes) ── */

.wwpgb-card .stock {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.wwpgb-card .stock.in-stock {
    color: #0a7f3f;
}

.wwpgb-card .stock.out-of-stock {
    color: #b91c1c;
}

/* ── Add to cart row ── */

.wwpgb-card__cart-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wwpgb-card__button {
    display: inline-block;
    white-space: nowrap;
    padding: 0.65em 1.5em;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background: #303e7a;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.wwpgb-card__button:hover,
.wwpgb-card__button:focus {
    background: #252f60;
    color: #fff;
}

/* ── More button ── */

.wwpgb-card__more {
    margin-top: 0.25rem;
}

.wwpgb-card__more-btn {
    display: inline-block;
    padding: 0.5em 1.2em;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    background: #f7f7f7;
    transition: background 0.15s, border-color 0.15s;
}

.wwpgb-card__more-btn:hover,
.wwpgb-card__more-btn:focus {
    background: #e6e6e6;
    border-color: #999;
    color: #111;
}

/* ── Categories ── */

.wwpgb-card__categories {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.5rem;
}

.wwpgb-card__cat-label {
    font-weight: 600;
}

.wwpgb-card__categories a {
    color: #11508d;
    text-decoration: none;
}

.wwpgb-card__categories a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */

@media ( max-width: 640px ) {
    .wwpgb-card {
        grid-template-columns: 1fr;
    }
}
