/* ===== Product Card ===== */
.pc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.pc-card:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.13);
    transform: translateY(-5px);
}

/* Out of stock card dimming */
.pc-out-of-stock {
    opacity: 0.85;
}

.pc-out-of-stock:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* ---- Image ---- */
.pc-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f6f6f6;
}

.pc-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.pc-img-primary,
.pc-img-secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.pc-img-secondary {
    opacity: 0;
}

.pc-card:not(.pc-out-of-stock):hover .pc-img-primary {
    transform: scale(1.06);
}

.pc-card:not(.pc-out-of-stock):hover .pc-img-secondary {
    opacity: 1;
}

/* ---- Out of Stock badge ---- */
.pc-badge-oos {
    background: #555;
    color: #fff;
}

/* ---- Badges ---- */
.pc-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
}

.pc-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.pc-badge-hot {
    background: linear-gradient(135deg, #ff4500, #c70909);
    color: #fff;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(199, 9, 9, 0.3);
    }

    50% {
        box-shadow: 0 4px 16px rgba(199, 9, 9, 0.6);
    }
}

.pc-badge-best {
    background: linear-gradient(135deg, #7b5ea7, #5c3d99);
    color: #fff;
}

.pc-badge-featured {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: #fff;
}

.pc-badge-sale {
    background: linear-gradient(135deg, #e12b2b, #c70909);
    color: #fff;
}

.pc-badge-new {
    background: linear-gradient(135deg, #1baa6a, #0d8050);
    color: #fff;
}

/* Discount badge top-right */
.pc-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #c70909;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 3;
    border: 1.5px solid #ffd0d0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ---- Hover Actions ---- */
.pc-hover-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) translateX(50px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 3;
}

.pc-card:not(.pc-out-of-stock):hover .pc-hover-actions {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.pc-action-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none !important;
}

.pc-action-btn:hover {
    background: #c80000;
    color: #fff;
    transform: scale(1.1);
}

/* ---- Body ---- */
.pc-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pc-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c80000;
    margin: 0 0 6px;
    font-weight: 600;
}

.pc-name {
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.45;
}

.pc-name a {
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    transition: color 0.2s;
}

.pc-name a:hover {
    color: #c80000;
}

/* ---- Stars ---- */
.pc-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
    margin-top: auto;
    font-size: 13px;
    color: #f5a623;
}

.pc-review-count {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

/* ---- Price ---- */
.pc-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pc-price {
    font-size: 17px;
    font-weight: 800;
    color: #c80000;
}

.pc-price-oos {
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
}

.pc-mrp {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}

.pc-save-pill {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ---- CTA Button ---- */
.pc-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #222;
    color: #fff !important;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-decoration: none !important;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.pc-btn-cart:hover {
    background: #c80000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 0, 0, 0.3);
}

/* Hot deal button gets a gradient */
.pc-btn-hot {
    background: linear-gradient(135deg, #c70909, #ff4500);
    box-shadow: 0 4px 12px rgba(199, 9, 9, 0.3);
}

.pc-btn-hot:hover {
    background: linear-gradient(135deg, #a40707, #cc3700);
    box-shadow: 0 6px 18px rgba(199, 9, 9, 0.4);
}

/* Out of stock button */
.pc-btn-oos {
    background: #e9e9e9;
    color: #999 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.pc-btn-oos:hover {
    background: #e9e9e9;
    transform: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .pc-thumb {
        height: 180px;
    }

    .pc-badge {
        font-size: 9px;
        padding: 4px 8px;
    }
}