.wc-card-wrap {
    font-family: 'Outfit', sans-serif;
    height: 100%;
}

.wc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wc-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Badges */
.wc-badge-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: #f97316;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 4px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.wc-badge-out-stock {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 11;
    background: #dc2626;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 4px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.wc-badges-right {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.wc-badge-save {
    background: #2563eb;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.wc-badge-earn {
    background: #7c3aed;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Image */
.wc-card-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid #f3f4f6;
    padding: 1rem;
}

.wc-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wc-card:hover .wc-card-img {
    transform: scale(1.05);
}

/* Body */
.wc-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
}

.wc-card-top {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 5px;
}

/* Rating */
.wc-rating {
    display: flex;
    gap: 2px;
}

.wc-star-filled {
    color: #f59e0b;
    font-size: 0.68rem;
}

.wc-star-empty {
    color: #d1d5db;
    font-size: 0.68rem;
}

/* Name */
.wc-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0;
    min-height: calc(0.82rem * 1.4 * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}


.wc-card-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.wc-card-name-link:hover {
    color: #2563eb;
}

/* Key features */
.wc-kf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wc-kf-item {
    font-size: 0.7rem;
    color: #4b5563;
    line-height: 1.4;
    padding-left: 10px;
    position: relative;
}

.wc-kf-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
}

/* Quantity left */
.wc-qty-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wc-qty-left {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2563eb;
}

.wc-qty-bar {
    width: 100%;
    height: 5px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.wc-qty-fill {
    height: 100%;
    border-radius: 99px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.wc-qty-fill.wc-qty-mid {
    background: #f59e0b;
}

.wc-qty-fill.wc-qty-low {
    background: #dc2626;
}

/* Price row */
.wc-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.wc-prices {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.wc-price-main,
.wc-price-special {
    font-size: 1rem;
    font-weight: 700;
    color: #dc2626;
}

.wc-price-old {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Availability */
.wc-availability {
    font-size: 0.7rem;
    font-weight: 600;
}

.wc-in-stock {
    color: #16a34a;
}

.wc-out-stock {
    color: #dc2626;
}

/* Actions */
.wc-actions {
    display: flex;
    gap: 6px;
    padding-top: 2px;
}

.wc-actions form {
    margin: 0;
}

/* Icon mode: [♥][⊞][🛒]  [Buy Now] */
.wc-actions-icon {
    align-items: center;
}

.wc-icon-btns {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.wc-btn-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #fca5a5;
    border-radius: 7px;
    color: #ef4444;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.wc-btn-icon:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.wc-form-buy {
    flex: 1;
}

/* Row mode: [Buy Now] [Add To Cart] */
.wc-actions-row {
    align-items: stretch;
}

.wc-actions-row .wc-form-buy,
.wc-actions-row .wc-form-cart {
    display: flex;
    flex: 1;
    height: auto;
}

/* Buttons */
.wc-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3a8a;
    border: 1.5px solid #1e3a8a;
    color: #fff;
    border-radius: 7px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 28px;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    width: 100%;
    white-space: nowrap;
    font-size: 0.72rem;
}

.wc-btn-buy:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.wc-btn-buy:active {
    transform: translateY(0);
}

.wc-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #1e3a8a;
    border: 1.5px solid #1e3a8a;
    border-radius: 7px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.18s;
    width: 100%;
    white-space: nowrap;
    font-size: 0.72rem;
}

.wc-btn-cart:hover {
    background: #1e3a8a;
    color: #fff;
}

/* Responsive */
@media (max-width: 767.98px) {
    .wc-card-name {
        font-size: 0.78rem;
    }

    .wc-btn-buy,
    .wc-btn-cart {
        font-size: 0.72rem;
        padding: 7px 8px;
    }

    .wc-btn-icon {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .wc-badge-discount,
    .wc-badge-out-stock,
    .wc-badge-earn {
        font-size: 0.62rem;
        padding: 2px 6px;
    }
}

@media (max-width: 575.98px) {
    .wc-btn-buy,
    .wc-btn-cart {
        font-size: 0.68rem;
        padding: 6px 6px;
    }

    .wc-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
