/* ══════════════════════════════════════
   Cards Component
   ══════════════════════════════════════ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-elevated {
    box-shadow: var(--shadow-md);
}

.card-elevated:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* ── Glass Card ── */
.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ── Product Card ── */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-200);
}

.product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__badge {
    position: absolute;
    top: var(--space-3);
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    z-index: 1;
}

[dir="rtl"] .product-card__badge { right: var(--space-3); }
[dir="ltr"] .product-card__badge { left: var(--space-3); }

.product-card__badge--sale {
    background: var(--error);
    color: #ffffff;
}

.product-card__badge--new {
    background: var(--primary-500);
    color: #ffffff;
}

.product-card__badge--featured {
    background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
    color: var(--primary-900);
}

.product-card__body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.product-card__category {
    font-size: var(--text-xs);
    color: var(--primary-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--leading-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-1);
}

.product-card__price-current {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary-600);
}

.product-card__price-old {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card__actions {
    padding: 0 var(--space-4) var(--space-4);
}

/* ── Stat Card (Dashboard) ── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: all var(--transition-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card__icon--primary {
    background: var(--primary-100);
    color: var(--primary-600);
}

.stat-card__icon--accent {
    background: var(--accent-100);
    color: var(--accent-600);
}

.stat-card__icon--success {
    background: var(--success-bg);
    color: var(--success);
}

.stat-card__icon--error {
    background: var(--error-bg);
    color: var(--error);
}

.stat-card__content {
    flex: 1;
}

.stat-card__label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.stat-card__value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    direction: ltr;
}

.stat-card__change {
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: var(--space-1);
}

.stat-card__change--up { color: var(--success); }
.stat-card__change--down { color: var(--error); }
