/* ============================================================
   Professional Product Card — Fixed Height, Buy Now button
   ============================================================ */

/* ── Card wrapper (replaces col-lg-2) ── */
.pc-col {
    padding: 6px;
}

/* ── The card itself ── */
.pc-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ececec;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;          /* stretch to row height */
    transition: box-shadow .22s, transform .22s;
    position: relative;
}
.pc-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    transform: translateY(-3px);
    border-color: #ddd;
}

/* ── Badges ── */
.pc-badges {
    position: absolute;
    top: 8px; left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
}
.pc-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.5;
}
.pc-badge-discount { background: #e53935; color: #fff; }
.pc-badge-tag      { background: #F36D21; color: #fff; }

/* ── Image area — fixed height ── */
.pc-img-wrap {
    width: 100%;
    height: 170px;          /* fixed image height */
    overflow: hidden;
    background: #f8f8f8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.pc-card:hover .pc-img-wrap img { transform: scale(1.06); }

/* Quick-action icons (wishlist / compare) */
.pc-quick-actions {
    position: absolute;
    top: 8px; right: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: opacity .2s;
    z-index: 3;
}
.pc-card:hover .pc-quick-actions { opacity: 1; }
.pc-qa-btn {
    width: 28px; height: 28px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    transition: .15s;
}
.pc-qa-btn:hover {
    background: #F36D21;
    color: #fff;
    border-color: #F36D21;
    text-decoration: none;
}

/* ── Card body ── */
.pc-body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product name — clamp to 2 lines */
.pc-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.pc-name a { color: inherit; text-decoration: none; }
.pc-name a:hover { color: #F36D21; }

/* Unit / qty */
.pc-qty {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
}

/* Prices */
.pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.pc-price {
    font-size: 15px;
    font-weight: 700;
    color: #F36D21;
}
.pc-price-old {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
}

/* ── Buttons row ── */
.pc-btn-row {
    display: flex;
    gap: 6px;
    margin-top: auto;
}
.pc-btn {
    flex: 1;
    border: none;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 7px 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}
/* Add to Cart — outlined */
.pc-btn-cart {
    background: #fff;
    color: #F36D21;
    border: 1.5px solid #F36D21;
}
.pc-btn-cart:hover {
    background: #F36D21;
    color: #fff;
    text-decoration: none;
}
/* Buy Now — filled */
.pc-btn-buy {
    background: #F36D21;
    color: #fff;
    border: 1.5px solid #F36D21;
}
.pc-btn-buy:hover {
    background: #d95c16;
    border-color: #d95c16;
    color: #fff;
    text-decoration: none;
}

/* ── Divider between image and body ── */
.pc-divider {
    height: 1px;
    background: #f2f2f2;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .pc-img-wrap { height: 150px; }
}
@media (max-width: 767px) {
    .pc-img-wrap { height: 130px; }
    .pc-name { font-size: 12px; min-height: 32px; }
    .pc-price { font-size: 13px; }
    .pc-btn   { font-size: 10.5px; padding: 6px 3px; }
}
@media (max-width: 480px) {
    .pc-img-wrap { height: 110px; }
    .pc-btn-row  { flex-direction: column; gap: 4px; }
}
