/* ==========================================================================
   Product Card CSS
   ========================================================================== */

.nb-product-card {
    background: var(--nb-white);
    border-radius: var(--nb-radius-md);
    overflow: hidden;
    position: relative;
    transition: box-shadow var(--nb-transition-base), transform var(--nb-transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nb-product-card:hover {
    box-shadow: var(--nb-shadow-lg);
    transform: translateY(-5px);
}

/* ── Media Area ── */
.nb-product-media {
    position: relative;
    overflow: hidden;
    background: var(--nb-gray-100);
    aspect-ratio: 4/5;
}

.nb-product-link {
    display: block;
    width: 100%;
    height: 100%;
}

.nb-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--nb-transition-slow), transform var(--nb-transition-slow);
}

.nb-product-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.nb-product-card:hover .nb-product-img-hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ── Badges ── */
.nb-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.nb-badge, .nb-sale-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nb-white);
    border-radius: var(--nb-radius-sm);
    box-shadow: var(--nb-shadow-sm);
}

.nb-sale-badge {
    background: var(--nb-accent);
    color: var(--nb-gray-800);
}

.nb-badge-hot {
    background: var(--nb-danger);
}

.nb-badge-out-stock {
    background: var(--nb-gray-600);
}

/* ── Hover Actions ── */
.nb-product-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    transform: translateX(50px);
    opacity: 0;
    transition: all var(--nb-transition-base);
}

.nb-product-card:hover .nb-product-actions {
    transform: translateX(0);
    opacity: 1;
}

.nb-action-btn, 
.nb-product-actions .yith-wcwl-add-to-wishlist a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nb-white);
    color: var(--nb-gray-800);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--nb-shadow-md);
    transition: all var(--nb-transition-fast);
}

.nb-product-actions .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.nb-action-btn:hover,
.nb-product-actions .yith-wcwl-add-to-wishlist a:hover {
    background: var(--nb-primary);
    color: var(--nb-white);
}

/* ── Info Area ── */
.nb-product-info {
    padding: var(--nb-space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nb-product-cats {
    font-size: var(--nb-fs-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nb-gray-500);
    margin-bottom: 5px;
}

.nb-product-cats a {
    color: inherit;
}

.nb-product-cats a:hover {
    color: var(--nb-primary);
}

.nb-product-title {
    font-family: var(--nb-font-body);
    font-size: var(--nb-fs-base);
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.nb-product-title a {
    color: var(--nb-gray-800);
}

.nb-product-title a:hover {
    color: var(--nb-primary);
}

.nb-star-rating {
    color: var(--nb-accent);
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
}

.nb-review-count {
    color: var(--nb-gray-500);
    font-size: var(--nb-fs-xs);
    margin-left: 5px;
}

/* ── Price & Cart ── */
.nb-product-price-cart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
}

.nb-product-price {
    font-weight: 600;
    font-size: var(--nb-fs-md);
    color: var(--nb-gray-800);
}

.nb-product-price del {
    color: var(--nb-gray-400);
    font-weight: 400;
    font-size: var(--nb-fs-sm);
    margin-right: 5px;
}

.nb-product-price ins {
    text-decoration: none;
    color: var(--nb-danger);
}

.nb-add-to-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nb-gray-100);
    color: var(--nb-gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--nb-transition-fast);
}

.nb-add-to-cart-btn:hover {
    background: var(--nb-primary);
    color: var(--nb-white);
}

.nb-add-to-cart-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

.nb-add-to-cart-btn.added {
    background: var(--nb-success);
    color: var(--nb-white);
}

/* ── Placeholder ── */
.nb-placeholder-card {
    border: 1px solid var(--nb-gray-200);
    box-shadow: none;
}
