/* كارت المنتج بتصميم الرحاب: صورة + اسم + تقييم + سعر + كمية + زر أصفر */
:root { --rh-yellow: #f6b01e; --rh-yellow-dark: #e09d0b; --rh-dark: #1f2329; --rh-border: #eceef1; }

.product-card { position: relative; border: 1px solid var(--rh-border); border-radius: 12px; background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; height: 100%; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.product-card:before, .product-card:after { display: none !important; }

/* القلب فوق */
.product-card .product-card__actions-list { position: absolute; top: 10px; left: 10px; right: auto; z-index: 2; }
[dir="ltr"] .product-card .product-card__actions-list { left: auto; right: 10px; }

/* البادج (جديد) فوق في الركن */
.product-card .product-card__badges { position: absolute; top: 10px; right: 10px; z-index: 2; }
[dir="ltr"] .product-card .product-card__badges { right: auto; left: 10px; }
.product-card .tag-badge { background: #5b3ea6 !important; color: #fff !important; border-radius: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; }
.product-card .tag-badge:before { display: none !important; }

.product-card .product-card__image { padding: 34px 14px 6px; }
.product-card .product-card__info { padding: 6px 12px 0; }
.product-card .product-card__meta { display: none; }
.product-card .product-card__name { font-size: 13px; font-weight: 600; color: var(--rh-dark); margin-bottom: 4px; line-height: 1.5; }
.product-card .product-card__rating { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; }
.product-card .rating__star { color: var(--rh-yellow); }
.product-card .product-card__rating-label { font-size: 11px; color: #8a8f98; }

.product-card .product-card__footer { padding: 6px 12px 4px; margin-top: auto; }
.product-card .product-card__prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card .product-card__price--new { font-size: 15px; font-weight: 800; color: var(--rh-dark); }
.product-card .product-card__price--old { font-size: 12px; text-decoration: line-through; }

/* الكمية + زر العربة */
.product-card .product-card__buy { padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.pc-qty { display: flex; align-items: center; border: 1px solid var(--rh-border); border-radius: 8px; overflow: hidden; height: 32px; direction: ltr; }
.pc-qty__btn { width: 34px; height: 100%; border: 0; background: #f6f7f9; font-size: 16px; color: var(--rh-dark); cursor: pointer; flex: 0 0 auto; }
.pc-qty__btn:hover { background: #eceef1; }
.pc-qty__input { flex: 1 1 auto; min-width: 0; border: 0; text-align: center; font-size: 13px; font-weight: 600; outline: none; -moz-appearance: textfield; }
.pc-qty__input::-webkit-outer-spin-button, .pc-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-addtocart { display: flex !important; align-items: center; justify-content: center; gap: 8px; height: 36px; border-radius: 8px; background: var(--rh-yellow); color: var(--rh-dark) !important; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: background .2s; }
.pc-addtocart:hover { background: var(--rh-yellow-dark); }
.pc-addtocart svg { fill: currentColor; }

@media (max-width: 575px) {
    .product-card .product-card__image { padding: 30px 8px 4px; }
    .product-card .product-card__info, .product-card .product-card__footer, .product-card .product-card__buy { padding-left: 8px; padding-right: 8px; }
    .pc-addtocart { font-size: 12px; height: 34px; }
}
