/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ── Card wrapper ─────────────────────────────────────────────────────────── */
.cp-card {
    list-style: none;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #222;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ── Brand logo area ──────────────────────────────────────────────────────── */
.cp-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cp-brand-logo {
    max-height: 36px;
    max-width: 120px;
    object-fit: contain;
}

.cp-brand-text {
    font-weight: 700;
    font-size: 20px;
    color: #007db8; /* Dell-style blue; override as needed */
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Product image ────────────────────────────────────────────────────────── */
.cp-image-wrap {
    padding: 0px 20px
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    border-bottom: 1px solid #e8e8e8;
}

.cp-image-wrap a {
    display: block;
    line-height: 0;
}

.cp-img {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* ── Card body ────────────────────────────────────────────────────────────── */
.cp-body {
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* ── Title + rating row ───────────────────────────────────────────────────── */
.cp-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cp-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
}

.cp-title a {
    color: #111;
    text-decoration: none;
}

.cp-title a:hover {
    color: #0073aa;
}

.cp-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cp-star {
    color: #f5a623;
    font-size: 16px;
    line-height: 1;
}

.cp-rating-score {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* ── SKU ──────────────────────────────────────────────────────────────────── */
.cp-sku-rating-row{
    display:flex;
    justify-content: space-between;
}
.cp-sku {
    margin: 0;
    font-size: 12px;
    color: #00843d; /* green like the reference */
    font-weight: 600;
    letter-spacing: .3px;
}

.cp-sku strong {
    font-weight: 700;
}

/* ── Bullet feature list (from short description) ────────────────────────── */
.cp-features ul {
    margin: 4px 0 0 0;
    padding-left: 18px;
    list-style: disc;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.cp-features ul li {
    margin-bottom: 1px;
}

.cp-features p {
    margin: 0;
    font-size: 13px;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.cp-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
}

/* ── Price + stock row ────────────────────────────────────────────────────── */
.cp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.cp-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Override WooCommerce price colour */
.cp-price-wrap .price,
.cp-price-wrap .woocommerce-Price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #111 !important;
    line-height: 1.1;
}

.cp-price-wrap .price del {
    font-size: 14px;
    color: #999 !important;
}

.cp-ex-vat {
    font-size: 11px;
    color: #888;
}

/* ── Stock badges ─────────────────────────────────────────────────────────── */
.cp-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: .2px;
}

.cp-badge--in {
    background: #00843d;
    color: #fff;
}

.cp-badge--out {
    background: #cc0000;
    color: #fff;
}

/* ── Action buttons ───────────────────────────────────────────────────────── */
.cp-actions {
    display: flex;
    gap: 10px;
    margin-top: 05px;
}

.cp-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 11px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
    line-height: 1;
    border: 2px solid transparent;
}

/* Buy Now – solid dark blue */
.cp-btn--primary {
    background: #1a3a6b;
    color: #fff;
    border-color: #1a3a6b;
}

.cp-btn--primary:hover {
    background: #24509a;
    border-color: #24509a;
    color: #fff;
}

/* Add to Cart – outlined */
.cp-btn--outline {
    background: #fff;
    color: #1a3a6b;
    border-color: #1a3a6b;
}

.cp-btn--outline:hover {
    background: #1a3a6b;
    color: #fff;
}

/* WooCommerce adds/removes classes – keep both selectors happy */
.cp-actions .ajax_add_to_cart.added::after {
    content: ' ✔';
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media ( max-width: 480px ) {
    .cp-actions {
        flex-direction: column;
    }
}