.evpac-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
}

.evpac-overlay.evpac-show {
    display: flex;
}

.evpac-modal {
    width: 92%;
    max-width: 560px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(10px);
}

.evpac-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.evpac-thumb {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.evpac-meta {
    flex: 1;
}

.evpac-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.evpac-base-price {
    margin-top: 6px;
    font-weight: 600;
}

.evpac-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.evpac-body {
    padding: 16px;
}

.evpac-field {
    margin-bottom: 10px;
}

.evpac-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.evpac-select,
.evpac-qty {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.evpac-qty {
    max-width: 120px;
}

.evpac-submit {
    width: 100%;
    padding: 10px 14px;
    margin-top: 8px;
    background: #ffffff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
button.evpac-submit:hover {
    background: #00CCA8;
    color: #fff;
}
.evpac-submit:hover {
    background: #005bb5;
}

.evpac-inline-msg {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
}
/* استایل دکمه‌های تعداد */
.evpac-qty-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.evpac-qty-wrapper input.evpac-qty {
    width: 60px;
    text-align: center;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.qty-controls {
    display: flex;
    margin-right: 5px;
}
.qty-controls button {
    margin-right: 5px;
}
.qty-controls button {
    width: 30px;
    height: 30px;
    font-size: 16px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    outline: none;
    margin-bottom: 2px;
    border-radius: 4px;
    transition: 0.2s;
}

.qty-controls button:hover {
    background: #e2e2e2;
}
/* دکمه‌ی افزودن به سبد خرید */
.evpac-submit {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* افکت hover فقط وقتی دکمه فعال است */
.evpac-submit:not(:disabled):hover {
    background-color: #218838;
    transform: scale(1.03);
}

/* حالت غیرفعال */
.evpac-submit:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .evpac-header {
        gap: 8px;
        padding: 12px;
    }
    .evpac-thumb {
        width: 60px;
        height: 60px;
    }
    .evpac-modal {
        max-width: 94%;
    }
}
