/* ============================
   Product Card — الكارت الأساسي
   ============================ */
.prod-card {
    background: var(--white);
    border-radius: var(--rl);
    overflow: hidden;
    border: 1.5px solid var(--gray);
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
}
.prod-card:hover {
    border-color: var(--orange);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    transform: translateY(-5px);
}
.prod-card-featured .prod-img { aspect-ratio: 4/3; }

/* ============================
   صورة المنتج
   ============================ */
.prod-img {
    position: relative;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prod-img a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.prod-card {
    background: var(--white);
    border-radius: var(--rl);
    overflow: hidden;
    border: 1.5px solid var(--gray);
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-no-img { font-size: 56px; }

/* ============================
   Badge الأكثر مبيعاً / جديد / خصم
   في الكورنر العلوي يمين
   ============================ */
.prod-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}
.prod-badge-sale { background: var(--red); color: #fff; }
.prod-badge-new  { background: var(--green); color: #fff; }
.prod-badge-hot  { background: var(--orange); color: #fff; }

/* ============================
   Wishlist
   ============================ */
.prod-wish {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: all .2s ease;
    color: var(--text3);
    cursor: pointer;
    z-index: 2;
}
.prod-wish:hover { background: var(--red); color: #fff; transform: scale(1.1); }
.prod-wish svg { width: 16px; height: 16px; }
.prod-wish.active { background: var(--red); color: #fff; }
.prod-wish.active svg { fill: #fff; }

/* ============================
   Thumbnails — أسفل الصورة
   بتظهر بس لو في أكتر من صورة
   ============================ */
.prod-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    background: var(--white);
    border-top: 1px solid var(--gray);
    justify-content: center;
}
.prod-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--off);
    cursor: pointer;
    padding: 0;
    transition: border-color .2s;
    flex-shrink: 0;
}
.prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.prod-thumb:hover { border-color: var(--orange); }
.prod-thumb.active { border-color: var(--orange); }

/* ============================
   Info — بيانات المنتج
   ============================ */
.prod-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prod-brand {
    font-size: 11px;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.prod-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
    min-height: 58px;
}
/* ============================
   النجوم — Rating
   ============================ */
.prod-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}
.prod-stars { display: flex; gap: 1px; }
.star { font-size: 13px; line-height: 1; }
.star.full  { color: #F59E0B; }
.star.half  { color: #F59E0B; opacity: 0.6; }
.star.empty { color: #D1D5DB; }
.rating-count { font-size: 11px; color: var(--text3); }

/* ============================
   السعر
   ============================ */
.prod-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    margin-top: auto;
}
.price-now  { font-size: 18px; font-weight: 900; color: var(--orange); }
.price-old  { font-size: 12px; color: var(--text3); text-decoration: line-through; }
.price-save { font-size: 11px; color: var(--green); font-weight: 700; }

/* ============================
   زر أضف للسلة
   ============================ */
.prod-footer { display: flex; gap: 8px; }

.btn-add-cart {
    width: 100%;
    background: var(--navy);
    color: #fff;
    padding: 10px 12px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 700;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .2s ease;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}
.btn-add-cart:hover { background: var(--orange); transform: translateY(-1px); }
.btn-add-cart svg { width: 14px; height: 14px; }

/* ============================
   نفذ المخزون
   ============================ */
.btn-out-stock {
    width: 100%;
    background: var(--gray);
    color: var(--text3);
    padding: 10px 12px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 700;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: not-allowed;
    opacity: 0.7;
    font-family: 'Tajawal', sans-serif;
}
.prod-card:has(.btn-out-stock) { opacity: 0.75; }
.prod-card:has(.btn-out-stock):hover {
    border-color: var(--gray);
    box-shadow: none;
    transform: none;
}

/* ============================
   Responsive — موبايل
   ============================ */
@media (max-width: 480px) {
    .prod-thumb { width: 34px; height: 34px; }
    .price-now { font-size: 16px; }
    .prod-name { font-size: 13px; }
}