/* ==========================================================
   دیجی‌لند کیت - استایل اختصاصی کارت وضعیت موجودی انبار
   ========================================================== */

.dl-stock-card {
    --dlst-card-bg: #ffffff;
    --dlst-card-border: #e2e8f0;
    --dlst-card-radius: 16px;
    --dlst-icon-size: 42px;
    --dlst-icon-radius: 12px;
    --dlst-beacon-size: 22px;
    --dlst-title-color: #0f172a;
    --dlst-desc-color: #64748b;
    --dlst-divider-color: #f1f5f9;
    --dlst-perks-color: #64748b;
    --dlst-perks-gap: 8px;

    width: 100%;
    background-color: var(--dlst-card-bg);
    border: 1.5px solid var(--dlst-card-border);
    border-radius: var(--dlst-card-radius);
    padding: 14px 18px;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    margin: 12px 0;
    transition: all 0.22s ease;
}

.dl-stock-card *,
.dl-stock-card *::before,
.dl-stock-card *::after {
    box-sizing: border-box;
}

.dl-stock-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.08);
}

.dl-stock-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.dl-stock-info-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.dl-stock-icon-wrap {
    width: var(--dlst-icon-size);
    height: var(--dlst-icon-size);
    border-radius: var(--dlst-icon-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.dl-stock-card.is-in-stock .dl-stock-icon-wrap {
    background-color: #ecfdf5;
    color: #059669;
}

.dl-stock-card.is-low-stock .dl-stock-icon-wrap {
    background-color: #fffbeb;
    color: #d97706;
}

.dl-stock-card.is-out-of-stock .dl-stock-icon-wrap {
    background-color: #fef2f2;
    color: #dc2626;
}

.dl-stock-text-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dl-stock-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--dlst-title-color);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-stock-desc {
    font-size: 12px;
    font-weight: 600;
    color: var(--dlst-desc-color);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-stock-beacon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-left: 4px;
}

.dl-stock-beacon {
    position: relative;
    width: var(--dlst-beacon-size);
    height: var(--dlst-beacon-size);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-beacon-core {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 2;
    position: relative;
    transition: all 0.2s ease;
}

.dl-beacon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: dlBeaconPulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    z-index: 1;
}

@keyframes dlBeaconPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.dl-stock-card.is-in-stock .dl-beacon-core {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.dl-stock-card.is-in-stock .dl-beacon-ring {
    border-color: #10b981;
}

.dl-stock-card.is-low-stock .dl-beacon-core {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}
.dl-stock-card.is-low-stock .dl-beacon-ring {
    border-color: #f59e0b;
}

.dl-stock-card.is-out-of-stock .dl-beacon-core {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}
.dl-stock-card.is-out-of-stock .dl-beacon-ring {
    border-color: #ef4444;
}

.dl-stock-divider {
    width: 100%;
    height: 1px;
    border-top: 1.5px dashed var(--dlst-divider-color);
    margin: 12px 0 10px 0;
}

.dl-stock-perks-row {
    display: flex;
    flex-direction: column;
    gap: var(--dlst-perks-gap);
}

.dl-stock-perk-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dlst-perks-color);
}

.dl-stock-perk-item svg {
    flex-shrink: 0;
}